#281FAB#281FAB
#281FAB is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.4% C 0.207 H 272.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).
Color values
| HEX | #281FAB |
|---|---|
| RGB | rgb(40, 31, 171) |
| HSL | hsl(244, 69%, 40%) |
| HSV | hsv(244, 82%, 67%) |
| CMYK | cmyk(76.6%, 81.9%, 0%, 32.9%) |
| CIE-LAB | lab(24.86, 49.33, -71.47) |
| CIE-LCH | lch(24.86, 86.84, 304.61°) |
| OKLab | oklab(37.4% 0.0101 -0.2068) |
| OKLCH | oklch(37.4% 0.207 272.8) |
| XYZ | xyz(8.7133, 4.3704, 38.9045) |
| Luminance | 0.0437 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.28
Cobalt Blue
#030AA7
ΔE00 3.69
Ultramarine
#2000B1
ΔE00 3.71
Royal Blue (survey)
#0504AA
ΔE00 4.00
True Blue
#010FCC
ΔE00 4.17
Royal
#0C1793
ΔE00 4.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281FAB #A2AB1F
analogous
#1F5CAB #281FAB #6E1FAB
triadic
#281FAB #AB281F #1FAB28
tetradic
#281FAB #AB1F5C #A2AB1F #1FAB6E
square
#281FAB #AB1F5C #A2AB1F #1FAB6E
split-complementary
#281FAB #AB6E1F #5CAB1F
monochromatic
#100C43 #1C1677 #281FAB #392ED9 #6A62E3
Accessibility & contrast
On white
11.20
#281FAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#281FAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281FAB
11.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281FAB | 1.00 | 11.20 | 1.87 | 11.20 |
| #FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0034A9
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #281fab; /* rgb */ color: rgb(40, 31, 171); /* oklch */ color: oklch(37.4% 0.207 272.8);
Tailwind
colors: {
custom: {
50: '#7a5fc5',
500: '#281fab',
950: '#000000',
},
}SCSS
$custom: #281fab; $custom-light: #7a5fc5; $custom-dark: #000000;
JSON
{
"hex": "#281fab",
"rgb": {
"r": 40,
"g": 31,
"b": 171
},
"hsl": {
"h": 243.857,
"s": 69.307,
"l": 39.608
},
"oklch": {
"l": 0.37397,
"c": 0.20703,
"h": 272.8
},
"luminance": 0.04371
}Semantic roles & 50–950 ramp
primary
#281FAB
secondary
#C1C75E
accent
#EC3CE1
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982