#281B94#281B94
#281B94 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.183 H 275.5°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).
Color values
| HEX | #281B94 |
|---|---|
| RGB | rgb(40, 27, 148) |
| HSL | hsl(246, 69%, 34%) |
| HSV | hsv(246, 82%, 58%) |
| CMYK | cmyk(73%, 81.8%, 0%, 42%) |
| CIE-LAB | lab(21.48, 44.08, -63.04) |
| CIE-LCH | lch(21.48, 76.92, 304.96°) |
| OKLab | oklab(34.26% 0.0176 -0.1823) |
| OKLCH | oklch(34.26% 0.183 275.5) |
| XYZ | xyz(6.6105, 3.3725, 28.3138) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.06
Cobalt Blue
#030AA7
ΔE00 3.66
Royal Blue (survey)
#0504AA
ΔE00 4.17
Indigo Blue
#3A18B1
ΔE00 4.54
Ultramarine
#2000B1
ΔE00 4.67
Darkblue
#00008B
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#281B94 #87941B
analogous
#1B4B94 #281B94 #651B94
triadic
#281B94 #94281B #1B9428
tetradic
#281B94 #941B4B #87941B #1B9465
square
#281B94 #941B4B #87941B #1B9465
split-complementary
#281B94 #94651B #4B941B
monochromatic
#0C082C #1A1260 #281B94 #3624C8 #5B4BDE
Accessibility & contrast
On white
12.54
#281B94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#281B94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #281B94
12.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##281B94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##281B94 | 1.00 | 12.54 | 1.67 | 12.54 |
| #FFFFFF | 12.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #281b94; /* rgb */ color: rgb(40, 27, 148); /* oklch */ color: oklch(34.3% 0.183 275.5);
Tailwind
colors: {
custom: {
50: '#745bb5',
500: '#281b94',
950: '#000000',
},
}SCSS
$custom: #281b94; $custom-light: #745bb5; $custom-dark: #000000;
JSON
{
"hex": "#281b94",
"rgb": {
"r": 40,
"g": 27,
"b": 148
},
"hsl": {
"h": 246.446,
"s": 69.143,
"l": 34.314
},
"oklch": {
"l": 0.34261,
"c": 0.1831,
"h": 275.5
},
"luminance": 0.03373
}Semantic roles & 50–950 ramp
primary
#281B94
secondary
#B4C04B
accent
#EC3CD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980