#2A107F#2A107F
#2A107F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.166 H 281.1°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A107F |
|---|---|
| RGB | rgb(42, 16, 127) |
| HSL | hsl(254, 78%, 28%) |
| HSV | hsv(254, 87%, 50%) |
| CMYK | cmyk(66.9%, 87.4%, 0%, 50.2%) |
| CIE-LAB | lab(17.44, 42.85, -56.56) |
| CIE-LCH | lch(17.44, 70.96, 307.15°) |
| OKLab | oklab(30.79% 0.0321 -0.1632) |
| OKLCH | oklch(30.79% 0.166 281.1) |
| XYZ | xyz(4.9697, 2.3947, 20.2749) |
| Luminance | 0.0239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.63
Navy
#000080
ΔE00 3.76
Darkblue
#00008B
ΔE00 3.81
Royal
#0C1793
ΔE00 3.92
Midnight Blue
#191970
ΔE00 4.07
Deep Blue
#040273
ΔE00 4.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A107F #657F10
analogous
#102D7F #2A107F #61107F
triadic
#2A107F #7F2A10 #107F2A
tetradic
#2A107F #7F102D #657F10 #107F61
square
#2A107F #7F102D #657F10 #107F61
split-complementary
#2A107F #7F6110 #2D7F10
monochromatic
#09031B #180949 #2A107F #3C17B5 #5226E4
Accessibility & contrast
On white
14.20
#2A107F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2A107F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A107F
14.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A107F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A107F | 1.00 | 14.20 | 1.48 | 14.20 |
| #FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2a107f; /* rgb */ color: rgb(42, 16, 127); /* oklch */ color: oklch(30.8% 0.166 281.1);
Tailwind
colors: {
custom: {
50: '#7154a5',
500: '#2a107f',
950: '#000000',
},
}SCSS
$custom: #2a107f; $custom-light: #7154a5; $custom-dark: #000000;
JSON
{
"hex": "#2a107f",
"rgb": {
"r": 42,
"g": 16,
"b": 127
},
"hsl": {
"h": 254.054,
"s": 77.622,
"l": 28.039
},
"oklch": {
"l": 0.30787,
"c": 0.16633,
"h": 281.1
},
"luminance": 0.02395
}Semantic roles & 50–950 ramp
primary
#2A107F
secondary
#97B536
accent
#F434C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F