#2C198E#2C198E
#2C198E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.177 H 278.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2C198E |
|---|---|
| RGB | rgb(44, 25, 142) |
| HSL | hsl(250, 70%, 33%) |
| HSV | hsv(250, 82%, 56%) |
| CMYK | cmyk(69%, 82.4%, 0%, 44.3%) |
| CIE-LAB | lab(20.76, 43.54, -60.49) |
| CIE-LCH | lch(20.76, 74.53, 305.75°) |
| OKLab | oklab(33.64% 0.026 -0.1747) |
| OKLCH | oklch(33.64% 0.177 278.5) |
| XYZ | xyz(6.2673, 3.1832, 25.8701) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.48
Indigo (survey)
#380282
ΔE00 4.13
Cobalt Blue
#030AA7
ΔE00 4.23
Darkblue
#00008B
ΔE00 4.65
Royal Blue (survey)
#0504AA
ΔE00 4.68
Indigo Blue
#3A18B1
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C198E #7B8E19
analogous
#19408E #2C198E #67198E
triadic
#2C198E #8E2C19 #198E2C
tetradic
#2C198E #8E1940 #7B8E19 #198E67
square
#2C198E #8E1940 #7B8E19 #198E67
split-complementary
#2C198E #8E6719 #408E19
monochromatic
#0C0726 #1C105A #2C198E #3C22C2 #5D43DE
Accessibility & contrast
On white
12.83
#2C198E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2C198E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C198E
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C198E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C198E | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c198e; /* rgb */ color: rgb(44, 25, 142); /* oklch */ color: oklch(33.6% 0.177 278.5);
Tailwind
colors: {
custom: {
50: '#755ab0',
500: '#2c198e',
950: '#000000',
},
}SCSS
$custom: #2c198e; $custom-light: #755ab0; $custom-dark: #000000;
JSON
{
"hex": "#2c198e",
"rgb": {
"r": 44,
"g": 25,
"b": 142
},
"hsl": {
"h": 249.744,
"s": 70.06,
"l": 32.745
},
"oklch": {
"l": 0.33643,
"c": 0.17664,
"h": 278.5
},
"luminance": 0.03184
}Semantic roles & 50–950 ramp
primary
#2C198E
secondary
#ABBF44
accent
#ED3BD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980