#2C198F#2C198F
#2C198F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.178 H 278.3°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2C198F |
|---|---|
| RGB | rgb(44, 25, 143) |
| HSL | hsl(250, 70%, 33%) |
| HSV | hsv(250, 83%, 56%) |
| CMYK | cmyk(69.2%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(20.88, 43.85, -60.92) |
| CIE-LCH | lch(20.88, 75.06, 305.74°) |
| OKLab | oklab(33.76% 0.0257 -0.176) |
| OKLCH | oklch(33.76% 0.178 278.3) |
| XYZ | xyz(6.3427, 3.2134, 26.2673) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.45
Cobalt Blue
#030AA7
ΔE00 4.12
Indigo (survey)
#380282
ΔE00 4.19
Royal Blue (survey)
#0504AA
ΔE00 4.57
Darkblue
#00008B
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C198F #7C8F19
analogous
#19418F #2C198F #67198F
triadic
#2C198F #8F2C19 #198F2C
tetradic
#2C198F #8F1941 #7C8F19 #198F67
square
#2C198F #8F1941 #7C8F19 #198F67
split-complementary
#2C198F #8F6719 #418F19
monochromatic
#0C0727 #1C105B #2C198F #3C22C3 #5D44DE
Accessibility & contrast
On white
12.78
#2C198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2C198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C198F
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C198F | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c198f; /* rgb */ color: rgb(44, 25, 143); /* oklch */ color: oklch(33.8% 0.178 278.3);
Tailwind
colors: {
custom: {
50: '#755ab1',
500: '#2c198f',
950: '#000000',
},
}SCSS
$custom: #2c198f; $custom-light: #755ab1; $custom-dark: #000000;
JSON
{
"hex": "#2c198f",
"rgb": {
"r": 44,
"g": 25,
"b": 143
},
"hsl": {
"h": 249.661,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.33757,
"c": 0.17784,
"h": 278.3
},
"luminance": 0.03214
}Semantic roles & 50–950 ramp
primary
#2C198F
secondary
#ACBF44
accent
#ED3BD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980