#2C317A#2C317A
#2C317A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.122 H 275.3°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2C317A |
|---|---|
| RGB | rgb(44, 49, 122) |
| HSL | hsl(236, 47%, 33%) |
| HSV | hsv(236, 64%, 48%) |
| CMYK | cmyk(63.9%, 59.8%, 0%, 52.2%) |
| CIE-LAB | lab(24.12, 22.20, -42.41) |
| CIE-LCH | lch(24.12, 47.87, 297.63°) |
| OKLab | oklab(35.47% 0.0113 -0.1219) |
| OKLCH | oklch(35.47% 0.122 275.3) |
| XYZ | xyz(5.6487, 4.1368, 18.9094) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.63
Blueberry
#464196
ΔE00 6.55
Midnight Blue
#191970
ΔE00 6.82
Marine
#042E60
ΔE00 7.13
Sapphire (survey)
#2138AB
ΔE00 7.58
Marine Blue
#01386A
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C317A #7A752C
analogous
#2C587A #2C317A #4E2C7A
triadic
#2C317A #7A2C31 #317A2C
tetradic
#2C317A #7A2C58 #7A752C #2C7A4E
square
#2C317A #7A2C58 #7A752C #2C7A4E
split-complementary
#2C317A #7A4E2C #587A2C
monochromatic
#0C0D20 #1C1F4D #2C317A #3C43A7 #5C63C4
Accessibility & contrast
On white
11.49
#2C317A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2C317A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C317A
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C317A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C317A | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2c317a; /* rgb */ color: rgb(44, 49, 122); /* oklch */ color: oklch(35.5% 0.122 275.3);
Tailwind
colors: {
custom: {
50: '#6e69a1',
500: '#2c317a',
950: '#000000',
},
}SCSS
$custom: #2c317a; $custom-light: #6e69a1; $custom-dark: #000000;
JSON
{
"hex": "#2c317a",
"rgb": {
"r": 44,
"g": 49,
"b": 122
},
"hsl": {
"h": 236.154,
"s": 46.988,
"l": 32.549
},
"oklch": {
"l": 0.35466,
"c": 0.1224,
"h": 275.3
},
"luminance": 0.04137
}Semantic roles & 50–950 ramp
primary
#2C317A
secondary
#AAA557
accent
#CE51D7
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F