#281C7A#281C7A
#281C7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.150 H 279.2°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).
Color values
| HEX | #281C7A |
|---|---|
| RGB | rgb(40, 28, 122) |
| HSL | hsl(248, 63%, 29%) |
| HSV | hsv(248, 77%, 48%) |
| CMYK | cmyk(67.2%, 77%, 0%, 52.2%) |
| CIE-LAB | lab(18.74, 35.09, -51.22) |
| CIE-LCH | lch(18.74, 62.09, 304.42°) |
| OKLab | oklab(31.48% 0.0239 -0.1479) |
| OKLCH | oklch(31.48% 0.15 279.2) |
| XYZ | xyz(4.8021, 2.6864, 18.6740) |
| Luminance | 0.0269 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.36
Royal
#0C1793
ΔE00 4.38
Indigo (survey)
#380282
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 5.26
Deep Blue
#040273
ΔE00 5.59
Navy
#000080
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281C7A #6E7A1C
analogous
#1C3F7A #281C7A #571C7A
triadic
#281C7A #7A281C #1C7A28
tetradic
#281C7A #7A1C3F #6E7A1C #1C7A57
square
#281C7A #7A1C3F #6E7A1C #1C7A57
split-complementary
#281C7A #7A571C #3F7A1C
monochromatic
#080619 #181148 #281C7A #3827AC #513ED3
Accessibility & contrast
On white
13.66
#281C7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#281C7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281C7A
13.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281C7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281C7A | 1.00 | 13.66 | 1.54 | 13.66 |
| #FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #281c7a; /* rgb */ color: rgb(40, 28, 122); /* oklch */ color: oklch(31.5% 0.150 279.2);
Tailwind
colors: {
custom: {
50: '#6e5aa1',
500: '#281c7a',
950: '#000000',
},
}SCSS
$custom: #281c7a; $custom-light: #6e5aa1; $custom-dark: #000000;
JSON
{
"hex": "#281c7a",
"rgb": {
"r": 40,
"g": 28,
"b": 122
},
"hsl": {
"h": 247.66,
"s": 62.667,
"l": 29.412
},
"oklch": {
"l": 0.31481,
"c": 0.14978,
"h": 279.2
},
"luminance": 0.02687
}Semantic roles & 50–950 ramp
primary
#281C7A
secondary
#A0AE44
accent
#E642D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F