#2C237E#2C237E
#2C237E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.146 H 279.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2C237E |
|---|---|
| RGB | rgb(44, 35, 126) |
| HSL | hsl(246, 57%, 32%) |
| HSV | hsv(246, 72%, 49%) |
| CMYK | cmyk(65.1%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(20.99, 32.81, -50.05) |
| CIE-LCH | lch(20.99, 59.85, 303.25°) |
| OKLab | oklab(33.29% 0.0237 -0.1444) |
| OKLCH | oklch(33.29% 0.146 279.3) |
| XYZ | xyz(5.4044, 3.2435, 20.0759) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.53
Royal
#0C1793
ΔE00 4.85
Indigo (survey)
#380282
ΔE00 6.32
Dark Royal Blue
#02066F
ΔE00 6.96
Darkblue
#00008B
ΔE00 7.19
Navy
#000080
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C237E #757E23
analogous
#23487E #2C237E #5A237E
triadic
#2C237E #7E2C23 #237E2C
tetradic
#2C237E #7E2348 #757E23 #237E5A
square
#2C237E #7E2348 #757E23 #237E5A
split-complementary
#2C237E #7E5A23 #487E23
monochromatic
#0B081E #1B164E #2C237E #3D30AE #5A4ECE
Accessibility & contrast
On white
12.74
#2C237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2C237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C237E
12.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C237E | 1.00 | 12.74 | 1.65 | 12.74 |
| #FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c237e; /* rgb */ color: rgb(44, 35, 126); /* oklch */ color: oklch(33.3% 0.146 279.3);
Tailwind
colors: {
custom: {
50: '#705fa4',
500: '#2c237e',
950: '#000000',
},
}SCSS
$custom: #2c237e; $custom-light: #705fa4; $custom-dark: #000000;
JSON
{
"hex": "#2c237e",
"rgb": {
"r": 44,
"g": 35,
"b": 126
},
"hsl": {
"h": 245.934,
"s": 56.522,
"l": 31.569
},
"oklch": {
"l": 0.33294,
"c": 0.14629,
"h": 279.3
},
"luminance": 0.03244
}Semantic roles & 50–950 ramp
primary
#2C237E
secondary
#A7B04C
accent
#E048D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F