#2D237F#2D237F
#2D237F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.147 H 279.7°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2D237F |
|---|---|
| RGB | rgb(45, 35, 127) |
| HSL | hsl(247, 57%, 32%) |
| HSV | hsv(247, 72%, 50%) |
| CMYK | cmyk(64.6%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(21.18, 33.30, -50.38) |
| CIE-LCH | lch(21.18, 60.39, 303.46°) |
| OKLab | oklab(33.48% 0.0249 -0.1453) |
| OKLCH | oklch(33.48% 0.147 279.7) |
| XYZ | xyz(5.5128, 3.2918, 20.4194) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.68
Royal
#0C1793
ΔE00 4.78
Indigo (survey)
#380282
ΔE00 6.20
Dark Royal Blue
#02066F
ΔE00 7.03
Darkblue
#00008B
ΔE00 7.15
Navy
#000080
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D237F #757F23
analogous
#23477F #2D237F #5B237F
triadic
#2D237F #7F2D23 #237F2D
tetradic
#2D237F #7F2347 #757F23 #237F5B
square
#2D237F #7F2347 #757F23 #237F5B
split-complementary
#2D237F #7F5B23 #477F23
monochromatic
#0B091F #1C164F #2D237F #3E30AF #5C4ECE
Accessibility & contrast
On white
12.66
#2D237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2D237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D237F
12.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D237F | 1.00 | 12.66 | 1.66 | 12.66 |
| #FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2d237f; /* rgb */ color: rgb(45, 35, 127); /* oklch */ color: oklch(33.5% 0.147 279.7);
Tailwind
colors: {
custom: {
50: '#715fa5',
500: '#2d237f',
950: '#000000',
},
}SCSS
$custom: #2d237f; $custom-light: #715fa5; $custom-dark: #000000;
JSON
{
"hex": "#2d237f",
"rgb": {
"r": 45,
"g": 35,
"b": 127
},
"hsl": {
"h": 246.522,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.33476,
"c": 0.14742,
"h": 279.7
},
"luminance": 0.03292
}Semantic roles & 50–950 ramp
primary
#2D237F
secondary
#A6B14C
accent
#E048D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F