#2E307E#2E307E
#2E307E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.129 H 276.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2E307E |
|---|---|
| RGB | rgb(46, 48, 126) |
| HSL | hsl(239, 47%, 34%) |
| HSV | hsv(239, 63%, 49%) |
| CMYK | cmyk(63.5%, 61.9%, 0%, 50.6%) |
| CIE-LAB | lab(24.32, 24.70, -44.60) |
| CIE-LCH | lch(24.32, 50.99, 298.98°) |
| OKLab | oklab(35.76% 0.0148 -0.1283) |
| OKLCH | oklch(35.76% 0.129 276.6) |
| XYZ | xyz(5.9483, 4.2006, 20.2320) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.29
Blueberry
#464196
ΔE00 6.21
Midnight Blue
#191970
ΔE00 6.47
Sapphire (survey)
#2138AB
ΔE00 7.06
Royal
#0C1793
ΔE00 7.82
Marine
#042E60
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E307E #7E7C2E
analogous
#2E587E #2E307E #542E7E
triadic
#2E307E #7E2E30 #307E2E
tetradic
#2E307E #7E2E58 #7E7C2E #2E7E54
square
#2E307E #7E2E58 #7E7C2E #2E7E54
split-complementary
#2E307E #7E542E #587E2E
monochromatic
#0D0E24 #1E1F51 #2E307E #3E41AB #6164C5
Accessibility & contrast
On white
11.41
#2E307E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2E307E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E307E
11.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E307E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E307E | 1.00 | 11.41 | 1.84 | 11.41 |
| #FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2e307e; /* rgb */ color: rgb(46, 48, 126); /* oklch */ color: oklch(35.8% 0.129 276.6);
Tailwind
colors: {
custom: {
50: '#7068a4',
500: '#2e307e',
950: '#000000',
},
}SCSS
$custom: #2e307e; $custom-light: #7068a4; $custom-dark: #000000;
JSON
{
"hex": "#2e307e",
"rgb": {
"r": 46,
"g": 48,
"b": 126
},
"hsl": {
"h": 238.5,
"s": 46.512,
"l": 33.725
},
"oklch": {
"l": 0.35759,
"c": 0.12912,
"h": 276.6
},
"luminance": 0.04201
}Semantic roles & 50–950 ramp
primary
#2E307E
secondary
#ACAA5C
accent
#D352D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F