#281B7C#281B7C
#281B7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.153 H 279.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).
Color values
| HEX | #281B7C |
|---|---|
| RGB | rgb(40, 27, 124) |
| HSL | hsl(248, 64%, 30%) |
| HSV | hsv(248, 78%, 49%) |
| CMYK | cmyk(67.7%, 78.2%, 0%, 51.4%) |
| CIE-LAB | lab(18.76, 36.33, -52.47) |
| CIE-LCH | lch(18.76, 63.82, 304.70°) |
| OKLab | oklab(31.56% 0.024 -0.1515) |
| OKLCH | oklch(31.56% 0.153 279) |
| XYZ | xyz(4.9039, 2.6898, 19.3256) |
| Luminance | 0.0269 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.59
Royal
#0C1793
ΔE00 4.02
Indigo (survey)
#380282
ΔE00 4.76
Dark Royal Blue
#02066F
ΔE00 5.14
Navy
#000080
ΔE00 5.39
Deep Blue
#040273
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281B7C #6F7C1B
analogous
#1B3F7C #281B7C #591B7C
triadic
#281B7C #7C281B #1B7C28
tetradic
#281B7C #7C1B3F #6F7C1B #1B7C59
square
#281B7C #7C1B3F #6F7C1B #1B7C59
split-complementary
#281B7C #7C591B #3F7C1B
monochromatic
#080519 #18104A #281B7C #3826AE #513DD5
Accessibility & contrast
On white
13.65
#281B7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#281B7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281B7C
13.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281B7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281B7C | 1.00 | 13.65 | 1.54 | 13.65 |
| #FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #281b7c; /* rgb */ color: rgb(40, 27, 124); /* oklch */ color: oklch(31.6% 0.153 279.0);
Tailwind
colors: {
custom: {
50: '#6f5aa3',
500: '#281b7c',
950: '#000000',
},
}SCSS
$custom: #281b7c; $custom-light: #6f5aa3; $custom-dark: #000000;
JSON
{
"hex": "#281b7c",
"rgb": {
"r": 40,
"g": 27,
"b": 124
},
"hsl": {
"h": 248.041,
"s": 64.238,
"l": 29.608
},
"oklch": {
"l": 0.31556,
"c": 0.1534,
"h": 279
},
"luminance": 0.0269
}Semantic roles & 50–950 ramp
primary
#281B7C
secondary
#A1B043
accent
#E741D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F