#281D7C#281D7C
#281D7C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.151 H 278.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #281D7C |
|---|---|
| RGB | rgb(40, 29, 124) |
| HSL | hsl(247, 62%, 30%) |
| HSV | hsv(247, 77%, 49%) |
| CMYK | cmyk(67.7%, 76.6%, 0%, 51.4%) |
| CIE-LAB | lab(19.16, 35.19, -51.81) |
| CIE-LCH | lch(19.16, 62.63, 304.18°) |
| OKLab | oklab(31.84% 0.0227 -0.1496) |
| OKLCH | oklch(31.84% 0.151 278.6) |
| XYZ | xyz(4.9514, 2.7847, 19.3414) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.57
Royal
#0C1793
ΔE00 4.16
Indigo (survey)
#380282
ΔE00 5.21
Dark Royal Blue
#02066F
ΔE00 5.50
Deep Blue
#040273
ΔE00 5.80
Navy
#000080
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281D7C #717C1D
analogous
#1D427C #281D7C #571D7C
triadic
#281D7C #7C281D #1D7C28
tetradic
#281D7C #7C1D42 #717C1D #1D7C57
square
#281D7C #7C1D42 #717C1D #1D7C57
split-complementary
#281D7C #7C571D #427C1D
monochromatic
#080619 #18114A #281D7C #3829AE #5241D3
Accessibility & contrast
On white
13.49
#281D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#281D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281D7C
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281D7C | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #281d7c; /* rgb */ color: rgb(40, 29, 124); /* oklch */ color: oklch(31.8% 0.151 278.6);
Tailwind
colors: {
custom: {
50: '#6f5ba3',
500: '#281d7c',
950: '#000000',
},
}SCSS
$custom: #281d7c; $custom-light: #6f5ba3; $custom-dark: #000000;
JSON
{
"hex": "#281d7c",
"rgb": {
"r": 40,
"g": 29,
"b": 124
},
"hsl": {
"h": 246.947,
"s": 62.092,
"l": 30
},
"oklch": {
"l": 0.31841,
"c": 0.1513,
"h": 278.6
},
"luminance": 0.02785
}Semantic roles & 50–950 ramp
primary
#281D7C
secondary
#A3B045
accent
#E543D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F