#2C317E#2C317E
#2C317E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.128 H 275.0°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2C317E |
|---|---|
| RGB | rgb(44, 49, 126) |
| HSL | hsl(236, 48%, 33%) |
| HSV | hsv(236, 65%, 49%) |
| CMYK | cmyk(65.1%, 61.1%, 0%, 50.6%) |
| CIE-LAB | lab(24.44, 23.67, -44.42) |
| CIE-LCH | lch(24.44, 50.33, 298.05°) |
| OKLab | oklab(35.81% 0.0113 -0.1278) |
| OKLCH | oklch(35.81% 0.128 275) |
| XYZ | xyz(5.9017, 4.2380, 20.2416) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.43
Blueberry
#464196
ΔE00 6.20
Midnight Blue
#191970
ΔE00 6.76
Sapphire (survey)
#2138AB
ΔE00 6.92
Marine
#042E60
ΔE00 7.52
Royal
#0C1793
ΔE00 8.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C317E #7E792C
analogous
#2C5A7E #2C317E #502C7E
triadic
#2C317E #7E2C31 #317E2C
tetradic
#2C317E #7E2C5A #7E792C #2C7E50
square
#2C317E #7E2C5A #7E792C #2C7E50
split-complementary
#2C317E #7E502C #5A7E2C
monochromatic
#0C0E23 #1C1F51 #2C317E #3C43AB #5E64C7
Accessibility & contrast
On white
11.37
#2C317E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#2C317E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C317E
11.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C317E | 1.00 | 11.37 | 1.85 | 11.37 |
| #FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2c317e; /* rgb */ color: rgb(44, 49, 126); /* oklch */ color: oklch(35.8% 0.128 275.0);
Tailwind
colors: {
custom: {
50: '#6f69a4',
500: '#2c317e',
950: '#000000',
},
}SCSS
$custom: #2c317e; $custom-light: #6f69a4; $custom-dark: #000000;
JSON
{
"hex": "#2c317e",
"rgb": {
"r": 44,
"g": 49,
"b": 126
},
"hsl": {
"h": 236.341,
"s": 48.235,
"l": 33.333
},
"oklch": {
"l": 0.35809,
"c": 0.12827,
"h": 275
},
"luminance": 0.04238
}Semantic roles & 50–950 ramp
primary
#2C317E
secondary
#ADA859
accent
#D050D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F