#2B107F#2B107F
#2B107F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.166 H 281.7°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2B107F |
|---|---|
| RGB | rgb(43, 16, 127) |
| HSL | hsl(255, 78%, 28%) |
| HSV | hsv(255, 87%, 50%) |
| CMYK | cmyk(66.1%, 87.4%, 0%, 50.2%) |
| CIE-LAB | lab(17.53, 42.94, -56.39) |
| CIE-LCH | lch(17.53, 70.88, 307.29°) |
| OKLab | oklab(30.88% 0.0338 -0.1627) |
| OKLCH | oklch(30.88% 0.166 281.7) |
| XYZ | xyz(5.0111, 2.4161, 20.2768) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.53
Navy
#000080
ΔE00 3.86
Darkblue
#00008B
ΔE00 3.90
Royal
#0C1793
ΔE00 4.00
Midnight Blue
#191970
ΔE00 4.15
Deep Blue
#040273
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B107F #647F10
analogous
#102C7F #2B107F #62107F
triadic
#2B107F #7F2B10 #107F2B
tetradic
#2B107F #7F102C #647F10 #107F62
square
#2B107F #7F102C #647F10 #107F62
split-complementary
#2B107F #7F6210 #2C7F10
monochromatic
#09031B #190949 #2B107F #3D17B5 #5426E4
Accessibility & contrast
On white
14.16
#2B107F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2B107F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B107F
14.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B107F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B107F | 1.00 | 14.16 | 1.48 | 14.16 |
| #FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b107f; /* rgb */ color: rgb(43, 16, 127); /* oklch */ color: oklch(30.9% 0.166 281.7);
Tailwind
colors: {
custom: {
50: '#7254a5',
500: '#2b107f',
950: '#000000',
},
}SCSS
$custom: #2b107f; $custom-light: #7254a5; $custom-dark: #000000;
JSON
{
"hex": "#2b107f",
"rgb": {
"r": 43,
"g": 16,
"b": 127
},
"hsl": {
"h": 254.595,
"s": 77.622,
"l": 28.039
},
"oklch": {
"l": 0.30879,
"c": 0.16616,
"h": 281.7
},
"luminance": 0.02416
}Semantic roles & 50–950 ramp
primary
#2B107F
secondary
#96B536
accent
#F434C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F