Skip to content
#2A5C8E
#8EC8E8
#E8C878
#0E1E3A
Background
Large text / UI
Large text / UI
Decorative / accent

Majorelle Garden Color Palette

#2A5C8E · #8EC8E8 · #E8C878 · #0E1E3A

Fail
WCAG Grade
2.38:1
Contrast Ratio
AI Prompt

Use #2A5C8E as the background. Use #8EC8E8 as the primary accent. Use #E8C878 as secondary. Use #0E1E3A as body text/supporting color. Palette mood: Majorelle Garden — garden, cobalt, cacti.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the Majorelle Garden color scheme. Use these values for web design (HEX/RGB), print projects (CMYK), or specialized design software (HSL).

Swatch Design Role HEX RGB CMYK HSL
Background
Luminance: 10.1%
42, 92, 142 70%, 35%, 0%, 44% 210°, 54%, 36%
Large text / UI
Luminance: 52.9%
142, 200, 232 39%, 14%, 0%, 9% 201°, 66%, 73%
Large text / UI
Luminance: 59.8%
232, 200, 120 0%, 14%, 48%, 9% 43°, 71%, 69%
Decorative / accent
Luminance: 1.3%
14, 30, 58 76%, 48%, 0%, 77% 218°, 61%, 14%

Majorelle Garden Tints & Shades

Hover states, borders and elevation need lighter and darker steps of your base colors. Here are computed tints and shades for every color in the Majorelle Garden palette — click any swatch to copy its hex.

#2A5C8E gently saturated cyan-blue
#8EC8E8 saturated cyan-blue
#E8C878 saturated orange
#0E1E3A gently saturated blue

Majorelle Garden Palette Contrast Matrix (WCAG 2.1)

Every color tested as text on every other color as background. Body copy needs 4.5:1 (AA), large text and UI components 3:1. AAA requires 7:1.

Text on Background Preview Ratio Grade Safe For
#0E1E3A on #E8C878
Aa Sample Text
10.24:1 AAA Body text, headings, UI
#E8C878 on #0E1E3A
Aa Sample Text
10.24:1 AAA Body text, headings, UI
#0E1E3A on #8EC8E8
Aa Sample Text
9.14:1 AAA Body text, headings, UI
#8EC8E8 on #0E1E3A
Aa Sample Text
9.14:1 AAA Body text, headings, UI
#E8C878 on #2A5C8E
Aa Sample Text
4.29:1 Fail Large headings, UI components
#2A5C8E on #E8C878
Aa Sample Text
4.29:1 Fail Large headings, UI components
#8EC8E8 on #2A5C8E
Aa Sample Text
3.83:1 Fail Large headings, UI components
#2A5C8E on #8EC8E8
Aa Sample Text
3.83:1 Fail Large headings, UI components
#0E1E3A on #2A5C8E
Aa Sample Text
2.38:1 Fail Decorative use only
#2A5C8E on #0E1E3A
Aa Sample Text
2.38:1 Fail Decorative use only
#E8C878 on #8EC8E8
Aa Sample Text
1.11:1 Fail Decorative use only
#8EC8E8 on #E8C878
Aa Sample Text
1.11:1 Fail Decorative use only

Palette Details

The Majorelle Garden is Marrakechs blue jewel, its cobalt walls framing cacti, palms, and lily ponds. Two of the four colors are balanced (54–61%) and the other two are highly saturated (66–71%), with lightness running 14–73%. Body text #0E1E3A on #2A5C8E measures 2.38:1 (no WCAG text threshold); the accent #8EC8E8 measures 3.83:1 against the same background.

Color Harmony: Complementary

Two hue groups sit 167° apart (43°, 210°) — close to opposite sides of the wheel.

Hue Wheel

Opposite hues give the strongest contrast in the set; keep one as the surface and the other in small areas so they do not vibrate against each other.

History & Design Context

The garden was created in the 1920s by painter Jacques Majorelle, who patented the intense blue named for him; Yves Saint Laurent and Pierre Bergé saved it in 1980, and the nearby YSL museum honors the designer buried there.

Best Design Use Cases

Use the majorelle blue for hero surfaces, pale blue for highlights, golden accents for the pots and paths, and deep navy for decorative accents on the main background; use #E8C878 on #0E1E3A for body copy (10.24:1).

Measured best pair: #0E1E3A on #E8C878 at 10.24:1 (AAA). Use this pair for paragraph copy; the surface roles above are not body-text prescriptions.

Colors That Pair Well With Majorelle Garden

Need a fifth color? These three companions are computed from the palette's own hue positions on the color wheel, so they extend the scheme without breaking its harmony.

orange

directly opposite #8EC8E8 on the wheel — the strongest accent for CTAs and highlights when you need maximum energy

blue

30° beside #8EC8E8 — a calm secondary that extends the palette without adding tension

tinted neutral

a paper-white carrying the palette's own hue — perfect for surfaces and dividers

Using Majorelle Garden Without Breaking Accessibility

  • Use #8EC8E8 for buttons and links — it scores 3.83:1 against the #2A5C8E background (above the 3:1 UI-components threshold).
  • Don't set body copy in #0E1E3A on #2A5C8E — 2.38:1 fails WCAG AA; keep it for large decorative headings only.
  • Don't use #E8C878 behind body text — this light tone works better for surfaces, badges and dividers than for reading areas.

How to Implement the Majorelle Garden Color Scheme

To use this Majorelle Garden color palette in your web project, copy the CSS variables below or open the export panel for Tailwind, SCSS and Figma formats.

Option 1: CSS Variables

:root {
  /* Majorelle Garden — ihatecolors */
  --color-bg: #2A5C8E;
  --color-accent: #8EC8E8;
  --color-secondary: #E8C878;
  --color-text: #0E1E3A;
}

Web Design Tip

Use #2A5C8E as the page background and #8EC8E8 for buttons and large UI — they measure 3.83:1, which clears the 3:1 UI threshold but not 4.5:1, so keep small text out of this pair.

Accessibility Note

#0E1E3A on #2A5C8E measures 2.38:1, which fails every WCAG text threshold. The strongest pair in this palette is #0E1E3A on #E8C878 at 10.24:1 — use that pair for normal text instead.

Majorelle Garden Palette — Frequently Asked Questions

What are the hex codes in the Majorelle Garden color palette?

The Majorelle Garden palette contains #2A5C8E, #8EC8E8, #E8C878, #0E1E3A. Click any swatch on this page to copy its value, or export all four at once as CSS variables, Tailwind config, SCSS or a Figma-ready list.

Is the Majorelle Garden color palette accessible (WCAG)?

Yes. #0E1E3A on #E8C878 reaches 10.24:1, which passes WCAG AAA for normal text (7:1) as well as AA and the 3:1 UI threshold — use it for body copy and controls. The full contrast matrix above shows the exact score for every color-on-color pair in this palette.

What colors go well with the Majorelle Garden palette?

Beyond its own four colors, #E5A380, #949FE1, #EBEDF0 extend it naturally: the complementary hue for high-energy accents, an analogous neighbor for calm transitions, and a tinted neutral for surfaces. All three are computed from this palette's hues on the color wheel.

What mood does the Majorelle Garden palette create?

Majorelle Garden reads as garden, cobalt, cacti. Saturated cyan-blue drives the personality, grounded by gently saturated cyan-blue — a combination that works best when the mid-tone base gets most of the canvas.

Can I use the Majorelle Garden color palette commercially?

Yes. Individual color values can't be copyrighted, so the Majorelle Garden palette is free for personal, client and commercial work — websites, branding, apps, print and social content, with no attribution required.

How do I add the Majorelle Garden palette to Tailwind or CSS?

Use the export panel on this page: CSS variables, a Tailwind config block, SCSS variables, or a Figma copy list are generated from Majorelle Garden's exact values, including the tint and shade ramps shown above.

Similar Palettes

Live Preview
Generate Similar ✦