#281F9C#281F9C
#281F9C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.189 H 274.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).
Color values
| HEX | #281F9C |
|---|---|
| RGB | rgb(40, 31, 156) |
| HSL | hsl(244, 67%, 37%) |
| HSV | hsv(244, 80%, 61%) |
| CMYK | cmyk(74.4%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(23.10, 44.60, -65.27) |
| CIE-LCH | lch(23.10, 79.06, 304.35°) |
| OKLab | oklab(35.67% 0.0139 -0.1888) |
| OKLCH | oklch(35.67% 0.189 274.2) |
| XYZ | xyz(7.3638, 3.8306, 31.7973) |
| Luminance | 0.0383 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.79
Indigo Blue
#3A18B1
ΔE00 3.70
Cobalt Blue
#030AA7
ΔE00 3.71
Royal Blue (survey)
#0504AA
ΔE00 4.21
Ultramarine
#2000B1
ΔE00 4.46
Darkblue
#00008B
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281F9C #939C1F
analogous
#1F559C #281F9C #671F9C
triadic
#281F9C #9C281F #1F9C28
tetradic
#281F9C #9C1F55 #939C1F #1F9C67
square
#281F9C #9C1F55 #939C1F #1F9C67
split-complementary
#281F9C #9C671F #559C1F
monochromatic
#0E0B36 #1B1569 #281F9C #3529CF #6158DE
Accessibility & contrast
On white
11.89
#281F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#281F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281F9C
11.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281F9C | 1.00 | 11.89 | 1.77 | 11.89 |
| #FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #281f9c; /* rgb */ color: rgb(40, 31, 156); /* oklch */ color: oklch(35.7% 0.189 274.2);
Tailwind
colors: {
custom: {
50: '#765ebb',
500: '#281f9c',
950: '#000000',
},
}SCSS
$custom: #281f9c; $custom-light: #765ebb; $custom-dark: #000000;
JSON
{
"hex": "#281f9c",
"rgb": {
"r": 40,
"g": 31,
"b": 156
},
"hsl": {
"h": 244.32,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.35665,
"c": 0.1893,
"h": 274.2
},
"luminance": 0.03831
}Semantic roles & 50–950 ramp
primary
#281F9C
secondary
#BAC155
accent
#EA3EDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981