#2B198F#2B198F
#2B198F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.178 H 277.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2B198F |
|---|---|
| RGB | rgb(43, 25, 143) |
| HSL | hsl(249, 70%, 33%) |
| HSV | hsv(249, 83%, 56%) |
| CMYK | cmyk(69.9%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(20.80, 43.75, -61.06) |
| CIE-LCH | lch(20.80, 75.12, 305.62°) |
| OKLab | oklab(33.68% 0.0242 -0.1764) |
| OKLCH | oklch(33.68% 0.178 277.8) |
| XYZ | xyz(6.3002, 3.1915, 26.2653) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.34
Cobalt Blue
#030AA7
ΔE00 4.08
Indigo (survey)
#380282
ΔE00 4.25
Royal Blue (survey)
#0504AA
ΔE00 4.53
Darkblue
#00008B
ΔE00 4.61
Indigo Blue
#3A18B1
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B198F #7D8F19
analogous
#19428F #2B198F #66198F
triadic
#2B198F #8F2B19 #198F2B
tetradic
#2B198F #8F1942 #7D8F19 #198F66
square
#2B198F #8F1942 #7D8F19 #198F66
split-complementary
#2B198F #8F6619 #428F19
monochromatic
#0C0727 #1B105B #2B198F #3B22C3 #5C44DE
Accessibility & contrast
On white
12.82
#2B198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2B198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B198F
12.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B198F | 1.00 | 12.82 | 1.64 | 12.82 |
| #FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.82 | 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: #2b198f; /* rgb */ color: rgb(43, 25, 143); /* oklch */ color: oklch(33.7% 0.178 277.8);
Tailwind
colors: {
custom: {
50: '#755ab1',
500: '#2b198f',
950: '#000000',
},
}SCSS
$custom: #2b198f; $custom-light: #755ab1; $custom-dark: #000000;
JSON
{
"hex": "#2b198f",
"rgb": {
"r": 43,
"g": 25,
"b": 143
},
"hsl": {
"h": 249.153,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.33677,
"c": 0.17805,
"h": 277.8
},
"luminance": 0.03192
}Semantic roles & 50–950 ramp
primary
#2B198F
secondary
#ADBF44
accent
#ED3BD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980