#2B1966#2B1966
#2B1966 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.126 H 286.4°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1966 |
|---|---|
| RGB | rgb(43, 25, 102) |
| HSL | hsl(254, 61%, 25%) |
| HSV | hsv(254, 75%, 40%) |
| CMYK | cmyk(57.8%, 75.5%, 0%, 60%) |
| CIE-LAB | lab(16.35, 30.67, -42.18) |
| CIE-LCH | lch(16.35, 52.15, 306.02°) |
| OKLab | oklab(29.23% 0.0356 -0.1213) |
| OKLCH | oklch(29.23% 0.126 286.4) |
| XYZ | xyz(3.7414, 2.1680, 12.7891) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.35
Dark Indigo
#1F0954
ΔE00 4.29
Darkblue (survey)
#030764
ΔE00 5.43
Dark Royal Blue
#02066F
ΔE00 5.82
Dark Blue
#00035B
ΔE00 6.28
Deep Blue
#040273
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1966 #546619
analogous
#192E66 #2B1966 #521966
triadic
#2B1966 #662B19 #19662B
tetradic
#2B1966 #66192E #546619 #196652
square
#2B1966 #66192E #546619 #196652
split-complementary
#2B1966 #665219 #2E6619
monochromatic
#0A0619 #160D35 #2B1966 #402597 #5431C8
Accessibility & contrast
On white
14.65
#2B1966 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2B1966 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1966
14.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1966 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1966 | 1.00 | 14.65 | 1.43 | 14.65 |
| #FFFFFF | 14.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#122D3D
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2b1966; /* rgb */ color: rgb(43, 25, 102); /* oklch */ color: oklch(29.2% 0.126 286.4);
Tailwind
colors: {
custom: {
50: '#6c5792',
500: '#2b1966',
950: '#000000',
},
}SCSS
$custom: #2b1966; $custom-light: #6c5792; $custom-dark: #000000;
JSON
{
"hex": "#2b1966",
"rgb": {
"r": 43,
"g": 25,
"b": 102
},
"hsl": {
"h": 254.026,
"s": 60.63,
"l": 24.902
},
"oklch": {
"l": 0.29229,
"c": 0.12644,
"h": 286.4
},
"luminance": 0.02168
}Semantic roles & 50–950 ramp
primary
#2B1966
secondary
#869C3F
accent
#E444BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E