#281F6C#281F6C
#281F6C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.127 H 281.0°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).
Color values
| HEX | #281F6C |
|---|---|
| RGB | rgb(40, 31, 108) |
| HSL | hsl(247, 55%, 27%) |
| HSV | hsv(247, 71%, 42%) |
| CMYK | cmyk(63%, 71.3%, 0%, 57.6%) |
| CIE-LAB | lab(17.98, 28.48, -43.44) |
| CIE-LCH | lch(17.98, 51.94, 303.25°) |
| OKLab | oklab(30.51% 0.0243 -0.1251) |
| OKLCH | oklch(30.51% 0.127 281) |
| XYZ | xyz(4.0710, 2.5135, 14.4551) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.57
Dark Indigo
#1F0954
ΔE00 6.00
Darkblue (survey)
#030764
ΔE00 6.16
Dark Royal Blue
#02066F
ΔE00 6.33
Royal
#0C1793
ΔE00 6.95
Deep Blue
#040273
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281F6C #636C1F
analogous
#1F3D6C #281F6C #4F1F6C
triadic
#281F6C #6C281F #1F6C28
tetradic
#281F6C #6C1F3D #636C1F #1F6C4F
square
#281F6C #6C1F3D #636C1F #1F6C4F
split-complementary
#281F6C #6C4F1F #3D6C1F
monochromatic
#090718 #16113C #281F6C #3A2D9C #4E3EC8
Accessibility & contrast
On white
13.97
#281F6C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#281F6C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281F6C
13.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281F6C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281F6C | 1.00 | 13.97 | 1.50 | 13.97 |
| #FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #281f6c; /* rgb */ color: rgb(40, 31, 108); /* oklch */ color: oklch(30.5% 0.127 281.0);
Tailwind
colors: {
custom: {
50: '#6b5b97',
500: '#281f6c',
950: '#000000',
},
}SCSS
$custom: #281f6c; $custom-light: #6b5b97; $custom-dark: #000000;
JSON
{
"hex": "#281f6c",
"rgb": {
"r": 40,
"g": 31,
"b": 108
},
"hsl": {
"h": 247.013,
"s": 55.396,
"l": 27.255
},
"oklch": {
"l": 0.30505,
"c": 0.12747,
"h": 281
},
"luminance": 0.02514
}Semantic roles & 50–950 ramp
primary
#281F6C
secondary
#96A047
accent
#DF49CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E