#2E2398#2E2398
#2E2398 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.179 H 276.7°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2E2398 |
|---|---|
| RGB | rgb(46, 35, 152) |
| HSL | hsl(246, 63%, 37%) |
| HSV | hsv(246, 77%, 60%) |
| CMYK | cmyk(69.7%, 77%, 0%, 40.4%) |
| CIE-LAB | lab(23.83, 41.74, -61.60) |
| CIE-LCH | lch(23.83, 74.41, 304.12°) |
| OKLab | oklab(36.16% 0.021 -0.178) |
| OKLCH | oklch(36.16% 0.179 276.7) |
| XYZ | xyz(7.3934, 4.0492, 30.0916) |
| Luminance | 0.0405 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.50
Indigo Blue
#3A18B1
ΔE00 4.20
Cobalt Blue
#030AA7
ΔE00 4.83
Royal Blue (survey)
#0504AA
ΔE00 5.32
Ultramarine
#2000B1
ΔE00 5.49
Sapphire (survey)
#2138AB
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E2398 #8D9823
analogous
#235398 #2E2398 #692398
triadic
#2E2398 #982E23 #23982E
tetradic
#2E2398 #982353 #8D9823 #239869
square
#2E2398 #982353 #8D9823 #239869
split-complementary
#2E2398 #986923 #539823
monochromatic
#100C35 #1F1866 #2E2398 #3D2ECA #685CD9
Accessibility & contrast
On white
11.60
#2E2398 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#2E2398 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E2398
11.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E2398 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E2398 | 1.00 | 11.60 | 1.81 | 11.60 |
| #FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2e2398; /* rgb */ color: rgb(46, 35, 152); /* oklch */ color: oklch(36.2% 0.179 276.7);
Tailwind
colors: {
custom: {
50: '#7760b8',
500: '#2e2398',
950: '#000000',
},
}SCSS
$custom: #2e2398; $custom-light: #7760b8; $custom-dark: #000000;
JSON
{
"hex": "#2e2398",
"rgb": {
"r": 46,
"g": 35,
"b": 152
},
"hsl": {
"h": 245.641,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.36158,
"c": 0.17925,
"h": 276.7
},
"luminance": 0.0405
}Semantic roles & 50–950 ramp
primary
#2E2398
secondary
#B5BE59
accent
#E642D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980