#2B168F#2B168F
#2B168F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.180 H 278.1°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2B168F |
|---|---|
| RGB | rgb(43, 22, 143) |
| HSL | hsl(250, 73%, 32%) |
| HSV | hsv(250, 85%, 56%) |
| CMYK | cmyk(69.9%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(20.32, 45.14, -61.84) |
| CIE-LCH | lch(20.32, 76.57, 306.13°) |
| OKLab | oklab(33.35% 0.0255 -0.1786) |
| OKLCH | oklch(33.35% 0.18 278.1) |
| XYZ | xyz(6.2395, 3.0700, 26.2450) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.38
Indigo (survey)
#380282
ΔE00 3.81
Cobalt Blue
#030AA7
ΔE00 3.86
Darkblue
#00008B
ΔE00 4.18
Royal Blue (survey)
#0504AA
ΔE00 4.27
Ultramarine
#2000B1
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B168F #7A8F16
analogous
#163E8F #2B168F #67168F
triadic
#2B168F #8F2B16 #168F2B
tetradic
#2B168F #8F163E #7A8F16 #168F67
square
#2B168F #8F163E #7A8F16 #168F67
split-complementary
#2B168F #8F6716 #3E8F16
monochromatic
#0B0625 #1B0E5A #2B168F #3B1EC4 #5A3EE1
Accessibility & contrast
On white
13.01
#2B168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2B168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B168F
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B168F | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2b168f; /* rgb */ color: rgb(43, 22, 143); /* oklch */ color: oklch(33.4% 0.180 278.1);
Tailwind
colors: {
custom: {
50: '#7558b1',
500: '#2b168f',
950: '#000000',
},
}SCSS
$custom: #2b168f; $custom-light: #7558b1; $custom-dark: #000000;
JSON
{
"hex": "#2b168f",
"rgb": {
"r": 43,
"g": 22,
"b": 143
},
"hsl": {
"h": 250.413,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.33351,
"c": 0.18044,
"h": 278.1
},
"luminance": 0.03071
}Semantic roles & 50–950 ramp
primary
#2B168F
secondary
#ABC13F
accent
#F038D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980