#20127F#20127F
#20127F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.167 H 275.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).
Color values
| HEX | #20127F |
|---|---|
| RGB | rgb(32, 18, 127) |
| HSL | hsl(248, 75%, 28%) |
| HSV | hsv(248, 86%, 50%) |
| CMYK | cmyk(74.8%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(16.85, 41.15, -57.55) |
| CIE-LCH | lch(16.85, 70.75, 305.57°) |
| OKLab | oklab(30.17% 0.0157 -0.1664) |
| OKLCH | oklch(30.17% 0.167 275.4) |
| XYZ | xyz(4.6415, 2.2715, 20.2684) |
| Luminance | 0.0227 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.23
Midnight Blue
#191970
ΔE00 3.30
Navy
#000080
ΔE00 3.31
Darkblue
#00008B
ΔE00 3.42
Deep Blue
#040273
ΔE00 3.66
Dark Royal Blue
#02066F
ΔE00 3.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20127F #717F12
analogous
#123B7F #20127F #56127F
triadic
#20127F #7F2012 #127F20
tetradic
#20127F #7F123B #717F12 #127F56
square
#20127F #7F123B #717F12 #127F56
split-complementary
#20127F #7F5612 #3B7F12
monochromatic
#07041B #120A49 #20127F #2E1AB5 #422BE1
Accessibility & contrast
On white
14.44
#20127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#20127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20127F
14.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20127F | 1.00 | 14.44 | 1.45 | 14.44 |
| #FFFFFF | 14.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #20127f; /* rgb */ color: rgb(32, 18, 127); /* oklch */ color: oklch(30.2% 0.167 275.4);
Tailwind
colors: {
custom: {
50: '#6d54a5',
500: '#20127f',
950: '#000000',
},
}SCSS
$custom: #20127f; $custom-light: #6d54a5; $custom-dark: #000000;
JSON
{
"hex": "#20127f",
"rgb": {
"r": 32,
"g": 18,
"b": 127
},
"hsl": {
"h": 247.706,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.30166,
"c": 0.16711,
"h": 275.4
},
"luminance": 0.02272
}Semantic roles & 50–950 ramp
primary
#20127F
secondary
#A5B538
accent
#F236DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F