#2B198E#2B198E
#2B198E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.177 H 278.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2B198E |
|---|---|
| RGB | rgb(43, 25, 142) |
| HSL | hsl(249, 70%, 33%) |
| HSV | hsv(249, 82%, 56%) |
| CMYK | cmyk(69.7%, 82.4%, 0%, 44.3%) |
| CIE-LAB | lab(20.68, 43.44, -60.63) |
| CIE-LCH | lch(20.68, 74.59, 305.62°) |
| OKLab | oklab(33.56% 0.0245 -0.1751) |
| OKLCH | oklch(33.56% 0.177 278) |
| XYZ | xyz(6.2248, 3.1613, 25.8681) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.37
Cobalt Blue
#030AA7
ΔE00 4.19
Indigo (survey)
#380282
ΔE00 4.19
Darkblue
#00008B
ΔE00 4.59
Royal Blue (survey)
#0504AA
ΔE00 4.64
Midnight Blue
#191970
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B198E #7C8E19
analogous
#19418E #2B198E #66198E
triadic
#2B198E #8E2B19 #198E2B
tetradic
#2B198E #8E1941 #7C8E19 #198E66
square
#2B198E #8E1941 #7C8E19 #198E66
split-complementary
#2B198E #8E6619 #418E19
monochromatic
#0B0726 #1B105A #2B198E #3B22C2 #5B43DE
Accessibility & contrast
On white
12.86
#2B198E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2B198E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B198E
12.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B198E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B198E | 1.00 | 12.86 | 1.63 | 12.86 |
| #FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.86 | 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: #2b198e; /* rgb */ color: rgb(43, 25, 142); /* oklch */ color: oklch(33.6% 0.177 278.0);
Tailwind
colors: {
custom: {
50: '#745ab0',
500: '#2b198e',
950: '#000000',
},
}SCSS
$custom: #2b198e; $custom-light: #745ab0; $custom-dark: #000000;
JSON
{
"hex": "#2b198e",
"rgb": {
"r": 43,
"g": 25,
"b": 142
},
"hsl": {
"h": 249.231,
"s": 70.06,
"l": 32.745
},
"oklch": {
"l": 0.33563,
"c": 0.17686,
"h": 278
},
"luminance": 0.03162
}Semantic roles & 50–950 ramp
primary
#2B198E
secondary
#ACBF44
accent
#ED3BD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980