#281F9E#281F9E
#281F9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.192 H 274.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).
Color values
| HEX | #281F9E |
|---|---|
| RGB | rgb(40, 31, 158) |
| HSL | hsl(244, 67%, 37%) |
| HSV | hsv(244, 80%, 62%) |
| CMYK | cmyk(74.7%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(23.33, 45.24, -66.11) |
| CIE-LCH | lch(23.33, 80.11, 304.39°) |
| OKLab | oklab(35.89% 0.0134 -0.1912) |
| OKLCH | oklch(35.89% 0.192 274) |
| XYZ | xyz(7.5346, 3.8989, 32.6966) |
| Luminance | 0.0390 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.94
Indigo Blue
#3A18B1
ΔE00 3.47
Cobalt Blue
#030AA7
ΔE00 3.63
Royal Blue (survey)
#0504AA
ΔE00 4.11
Ultramarine
#2000B1
ΔE00 4.31
True Blue
#010FCC
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281F9E #959E1F
analogous
#1F569E #281F9E #681F9E
triadic
#281F9E #9E281F #1F9E28
tetradic
#281F9E #9E1F56 #959E1F #1F9E68
square
#281F9E #9E1F56 #959E1F #1F9E68
split-complementary
#281F9E #9E681F #569E1F
monochromatic
#0E0B38 #1B156B #281F9E #3529D1 #6259DE
Accessibility & contrast
On white
11.80
#281F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#281F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281F9E
11.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281F9E | 1.00 | 11.80 | 1.78 | 11.80 |
| #FFFFFF | 11.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #281f9e; /* rgb */ color: rgb(40, 31, 158); /* oklch */ color: oklch(35.9% 0.192 274.0);
Tailwind
colors: {
custom: {
50: '#765ebc',
500: '#281f9e',
950: '#000000',
},
}SCSS
$custom: #281f9e; $custom-light: #765ebc; $custom-dark: #000000;
JSON
{
"hex": "#281f9e",
"rgb": {
"r": 40,
"g": 31,
"b": 158
},
"hsl": {
"h": 244.252,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.35893,
"c": 0.19171,
"h": 274
},
"luminance": 0.039
}Semantic roles & 50–950 ramp
primary
#281F9E
secondary
#BBC256
accent
#EA3EDE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981