#2E238E#2E238E
#2E238E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.167 H 278.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2E238E |
|---|---|
| RGB | rgb(46, 35, 142) |
| HSL | hsl(246, 60%, 35%) |
| HSV | hsv(246, 75%, 56%) |
| CMYK | cmyk(67.6%, 75.4%, 0%, 44.3%) |
| CIE-LAB | lab(22.78, 38.46, -57.16) |
| CIE-LCH | lch(22.78, 68.90, 303.94°) |
| OKLab | oklab(35.1% 0.0233 -0.1651) |
| OKLCH | oklch(35.1% 0.167 278) |
| XYZ | xyz(6.6087, 3.7353, 25.9587) |
| Luminance | 0.0374 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.55
Midnight Blue
#191970
ΔE00 5.37
Indigo Blue
#3A18B1
ΔE00 5.52
Cobalt Blue
#030AA7
ΔE00 5.62
Indigo (survey)
#380282
ΔE00 6.01
Royal Blue (survey)
#0504AA
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E238E #838E23
analogous
#234E8E #2E238E #63238E
triadic
#2E238E #8E2E23 #238E2E
tetradic
#2E238E #8E234E #838E23 #238E63
square
#2E238E #8E234E #838E23 #238E63
split-complementary
#2E238E #8E6323 #4E8E23
monochromatic
#0E0B2C #1E175D #2E238E #3E2FBF #6356D5
Accessibility & contrast
On white
12.02
#2E238E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2E238E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E238E
12.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E238E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E238E | 1.00 | 12.02 | 1.75 | 12.02 |
| #FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2e238e; /* rgb */ color: rgb(46, 35, 142); /* oklch */ color: oklch(35.1% 0.167 278.0);
Tailwind
colors: {
custom: {
50: '#7560b0',
500: '#2e238e',
950: '#000000',
},
}SCSS
$custom: #2e238e; $custom-light: #7560b0; $custom-dark: #000000;
JSON
{
"hex": "#2e238e",
"rgb": {
"r": 46,
"g": 35,
"b": 142
},
"hsl": {
"h": 246.168,
"s": 60.452,
"l": 34.706
},
"oklch": {
"l": 0.35095,
"c": 0.16671,
"h": 278
},
"luminance": 0.03736
}Semantic roles & 50–950 ramp
primary
#2E238E
secondary
#AFB953
accent
#E444D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980