#2C2874#2C2874
#2C2874 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.126 H 279.4°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2C2874 |
|---|---|
| RGB | rgb(44, 40, 116) |
| HSL | hsl(243, 49%, 31%) |
| HSV | hsv(243, 66%, 45%) |
| CMYK | cmyk(62.1%, 65.5%, 0%, 54.5%) |
| CIE-LAB | lab(21.26, 26.11, -43.24) |
| CIE-LCH | lch(21.26, 50.51, 301.12°) |
| OKLab | oklab(33.2% 0.0205 -0.1244) |
| OKLCH | oklch(33.2% 0.126 279.4) |
| XYZ | xyz(4.9489, 3.3137, 16.8984) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.34
Darkslateblue
#483D8B
ΔE00 7.10
Royal
#0C1793
ΔE00 7.20
Dark Royal Blue
#02066F
ΔE00 8.40
Marine
#042E60
ΔE00 8.45
Blueberry
#464196
ΔE00 8.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C2874 #707428
analogous
#284A74 #2C2874 #522874
triadic
#2C2874 #742C28 #28742C
tetradic
#2C2874 #74284A #707428 #287452
square
#2C2874 #74284A #707428 #287452
split-complementary
#2C2874 #745228 #4A7428
monochromatic
#090919 #1B1846 #2C2874 #3D38A2 #5953C4
Accessibility & contrast
On white
12.63
#2C2874 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2C2874 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C2874
12.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C2874 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C2874 | 1.00 | 12.63 | 1.66 | 12.63 |
| #FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2c2874; /* rgb */ color: rgb(44, 40, 116); /* oklch */ color: oklch(33.2% 0.126 279.4);
Tailwind
colors: {
custom: {
50: '#6e629d',
500: '#2c2874',
950: '#000000',
},
}SCSS
$custom: #2c2874; $custom-light: #6e629d; $custom-dark: #000000;
JSON
{
"hex": "#2c2874",
"rgb": {
"r": 44,
"g": 40,
"b": 116
},
"hsl": {
"h": 243.158,
"s": 48.718,
"l": 30.588
},
"oklch": {
"l": 0.332,
"c": 0.12606,
"h": 279.4
},
"luminance": 0.03314
}Semantic roles & 50–950 ramp
primary
#2C2874
secondary
#A2A652
accent
#D850D1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E