#2C228E#2C228E
#2C228E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.168 H 277.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2C228E |
|---|---|
| RGB | rgb(44, 34, 142) |
| HSL | hsl(246, 61%, 35%) |
| HSV | hsv(246, 76%, 56%) |
| CMYK | cmyk(69%, 76.1%, 0%, 44.3%) |
| CIE-LAB | lab(22.42, 38.80, -57.76) |
| CIE-LCH | lch(22.42, 69.58, 303.89°) |
| OKLab | oklab(34.8% 0.0211 -0.1669) |
| OKLCH | oklch(34.8% 0.168 277.2) |
| XYZ | xyz(6.4916, 3.6320, 25.9449) |
| Luminance | 0.0363 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.24
Midnight Blue
#191970
ΔE00 5.22
Cobalt Blue
#030AA7
ΔE00 5.39
Indigo Blue
#3A18B1
ΔE00 5.52
Indigo (survey)
#380282
ΔE00 5.89
Royal Blue (survey)
#0504AA
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C228E #848E22
analogous
#224E8E #2C228E #62228E
triadic
#2C228E #8E2C22 #228E2C
tetradic
#2C228E #8E224E #848E22 #228E62
square
#2C228E #8E224E #848E22 #228E62
split-complementary
#2C228E #8E6222 #4E8E22
monochromatic
#0D0A2B #1D165D #2C228E #3B2EBF #6054D6
Accessibility & contrast
On white
12.16
#2C228E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2C228E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C228E
12.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C228E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C228E | 1.00 | 12.16 | 1.73 | 12.16 |
| #FFFFFF | 12.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2c228e; /* rgb */ color: rgb(44, 34, 142); /* oklch */ color: oklch(34.8% 0.168 277.2);
Tailwind
colors: {
custom: {
50: '#745fb0',
500: '#2c228e',
950: '#000000',
},
}SCSS
$custom: #2c228e; $custom-light: #745fb0; $custom-dark: #000000;
JSON
{
"hex": "#2c228e",
"rgb": {
"r": 44,
"g": 34,
"b": 142
},
"hsl": {
"h": 245.556,
"s": 61.364,
"l": 34.51
},
"oklch": {
"l": 0.34799,
"c": 0.1682,
"h": 277.2
},
"luminance": 0.03633
}Semantic roles & 50–950 ramp
primary
#2C228E
secondary
#B0BA52
accent
#E443D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980