#282F7A#282F7A
#282F7A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.126 H 273.8°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).
Color values
| HEX | #282F7A |
|---|---|
| RGB | rgb(40, 47, 122) |
| HSL | hsl(235, 51%, 32%) |
| HSV | hsv(235, 67%, 48%) |
| CMYK | cmyk(67.2%, 61.5%, 0%, 52.2%) |
| CIE-LAB | lab(23.30, 22.86, -43.76) |
| CIE-LCH | lch(23.30, 49.37, 297.58°) |
| OKLab | oklab(34.79% 0.0083 -0.126) |
| OKLCH | oklch(34.79% 0.126 273.8) |
| XYZ | xyz(5.4033, 3.8888, 18.8745) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 6.23
Darkslateblue
#483D8B
ΔE00 6.24
Marine
#042E60
ΔE00 6.89
Blueberry
#464196
ΔE00 7.07
Sapphire (survey)
#2138AB
ΔE00 7.54
Royal
#0C1793
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#282F7A #7A7328
analogous
#28587A #282F7A #4A287A
triadic
#282F7A #7A282F #2F7A28
tetradic
#282F7A #7A2858 #7A7328 #287A4A
square
#282F7A #7A2858 #7A7328 #287A4A
split-complementary
#282F7A #7A4A28 #587A28
monochromatic
#0A0B1E #191D4C #282F7A #3741A8 #555FC7
Accessibility & contrast
On white
11.81
#282F7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#282F7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #282F7A
11.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##282F7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##282F7A | 1.00 | 11.81 | 1.78 | 11.81 |
| #FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #282f7a; /* rgb */ color: rgb(40, 47, 122); /* oklch */ color: oklch(34.8% 0.126 273.8);
Tailwind
colors: {
custom: {
50: '#6c67a1',
500: '#282f7a',
950: '#000000',
},
}SCSS
$custom: #282f7a; $custom-light: #6c67a1; $custom-dark: #000000;
JSON
{
"hex": "#282f7a",
"rgb": {
"r": 40,
"g": 47,
"b": 122
},
"hsl": {
"h": 234.878,
"s": 50.617,
"l": 31.765
},
"oklch": {
"l": 0.34786,
"c": 0.12624,
"h": 273.8
},
"luminance": 0.03889
}Semantic roles & 50–950 ramp
primary
#282F7A
secondary
#ACA452
accent
#CE4EDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F