#281F99#281F99
#281F99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.186 H 274.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #281F99 |
|---|---|
| RGB | rgb(40, 31, 153) |
| HSL | hsl(244, 66%, 36%) |
| HSV | hsv(244, 80%, 60%) |
| CMYK | cmyk(73.9%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(22.76, 43.64, -64.00) |
| CIE-LCH | lch(22.76, 77.46, 304.29°) |
| OKLab | oklab(35.32% 0.0146 -0.1851) |
| OKLCH | oklch(35.32% 0.186 274.5) |
| XYZ | xyz(7.1129, 3.7303, 30.4760) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.59
Cobalt Blue
#030AA7
ΔE00 3.87
Indigo Blue
#3A18B1
ΔE00 4.06
Royal Blue (survey)
#0504AA
ΔE00 4.39
Ultramarine
#2000B1
ΔE00 4.73
Darkblue
#00008B
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281F99 #90991F
analogous
#1F5399 #281F99 #651F99
triadic
#281F99 #99281F #1F9928
tetradic
#281F99 #991F53 #90991F #1F9965
square
#281F99 #991F53 #90991F #1F9965
split-complementary
#281F99 #99651F #53991F
monochromatic
#0D0A33 #1B1566 #281F99 #3529CC #6056DD
Accessibility & contrast
On white
12.03
#281F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#281F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281F99
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281F99 | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #281f99; /* rgb */ color: rgb(40, 31, 153); /* oklch */ color: oklch(35.3% 0.186 274.5);
Tailwind
colors: {
custom: {
50: '#755eb8',
500: '#281f99',
950: '#000000',
},
}SCSS
$custom: #281f99; $custom-light: #755eb8; $custom-dark: #000000;
JSON
{
"hex": "#281f99",
"rgb": {
"r": 40,
"g": 31,
"b": 153
},
"hsl": {
"h": 244.426,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.35323,
"c": 0.18568,
"h": 274.5
},
"luminance": 0.03731
}Semantic roles & 50–950 ramp
primary
#281F99
secondary
#B8C054
accent
#E93FDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981