#282F7F#282F7F
#282F7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.133 H 273.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).
Color values
| HEX | #282F7F |
|---|---|
| RGB | rgb(40, 47, 127) |
| HSL | hsl(235, 52%, 33%) |
| HSV | hsv(235, 69%, 50%) |
| CMYK | cmyk(68.5%, 63%, 0%, 50.2%) |
| CIE-LAB | lab(23.72, 24.73, -46.23) |
| CIE-LCH | lch(23.72, 52.43, 298.14°) |
| OKLab | oklab(35.23% 0.0082 -0.1332) |
| OKLCH | oklch(35.23% 0.133 273.5) |
| XYZ | xyz(5.7211, 4.0159, 20.5482) |
| Luminance | 0.0402 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.04
Midnight Blue
#191970
ΔE00 6.20
Blueberry
#464196
ΔE00 6.69
Sapphire (survey)
#2138AB
ΔE00 6.76
Royal
#0C1793
ΔE00 7.41
Marine
#042E60
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#282F7F #7F7828
analogous
#285B7F #282F7F #4C287F
triadic
#282F7F #7F282F #2F7F28
tetradic
#282F7F #7F285B #7F7828 #287F4C
square
#282F7F #7F285B #7F7828 #287F4C
split-complementary
#282F7F #7F4C28 #5B7F28
monochromatic
#0B0D22 #191E50 #282F7F #3740AE #5760CA
Accessibility & contrast
On white
11.65
#282F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#282F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #282F7F
11.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##282F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##282F7F | 1.00 | 11.65 | 1.80 | 11.65 |
| #FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #282f7f; /* rgb */ color: rgb(40, 47, 127); /* oklch */ color: oklch(35.2% 0.133 273.5);
Tailwind
colors: {
custom: {
50: '#6e67a5',
500: '#282f7f',
950: '#000000',
},
}SCSS
$custom: #282f7f; $custom-light: #6e67a5; $custom-dark: #000000;
JSON
{
"hex": "#282f7f",
"rgb": {
"r": 40,
"g": 47,
"b": 127
},
"hsl": {
"h": 235.172,
"s": 52.096,
"l": 32.745
},
"oklch": {
"l": 0.35232,
"c": 0.13348,
"h": 273.5
},
"luminance": 0.04016
}Semantic roles & 50–950 ramp
primary
#282F7F
secondary
#AFA854
accent
#D04CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F