#282A7F#282A7F
#282A7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.140 H 275.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #282A7F |
|---|---|
| RGB | rgb(40, 42, 127) |
| HSL | hsl(239, 52%, 33%) |
| HSV | hsv(239, 69%, 50%) |
| CMYK | cmyk(68.5%, 66.9%, 0%, 50.2%) |
| CIE-LAB | lab(22.44, 28.09, -48.33) |
| CIE-LCH | lch(22.44, 55.90, 300.16°) |
| OKLab | oklab(34.29% 0.0125 -0.1394) |
| OKLCH | oklch(34.29% 0.14 275.1) |
| XYZ | xyz(5.5325, 3.6389, 20.4854) |
| Luminance | 0.0364 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.81
Royal
#0C1793
ΔE00 6.05
Darkslateblue
#483D8B
ΔE00 6.72
Sapphire (survey)
#2138AB
ΔE00 7.25
Blueberry
#464196
ΔE00 7.54
Marine
#042E60
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#282A7F #7F7D28
analogous
#28557F #282A7F #52287F
triadic
#282A7F #7F282A #2A7F28
tetradic
#282A7F #7F2855 #7F7D28 #287F52
square
#282A7F #7F2855 #7F7D28 #287F52
split-complementary
#282A7F #7F5228 #557F28
monochromatic
#0B0B22 #191B50 #282A7F #3739AE #575ACA
Accessibility & contrast
On white
12.15
#282A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#282A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #282A7F
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##282A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##282A7F | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #282a7f; /* rgb */ color: rgb(40, 42, 127); /* oklch */ color: oklch(34.3% 0.140 275.1);
Tailwind
colors: {
custom: {
50: '#6e64a5',
500: '#282a7f',
950: '#000000',
},
}SCSS
$custom: #282a7f; $custom-light: #6e64a5; $custom-dark: #000000;
JSON
{
"hex": "#282a7f",
"rgb": {
"r": 40,
"g": 42,
"b": 127
},
"hsl": {
"h": 238.621,
"s": 52.096,
"l": 32.745
},
"oklch": {
"l": 0.34289,
"c": 0.13998,
"h": 275.1
},
"luminance": 0.03639
}Semantic roles & 50–950 ramp
primary
#282A7F
secondary
#AFAD54
accent
#D84CDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F