#284797#284797
#284797 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.2% C 0.136 H 265.1°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).
Color values
| HEX | #284797 |
|---|---|
| RGB | rgb(40, 71, 151) |
| HSL | hsl(223, 58%, 37%) |
| HSV | hsv(223, 74%, 59%) |
| CMYK | cmyk(73.5%, 53%, 0%, 40.8%) |
| CIE-LAB | lab(32.24, 17.52, -47.26) |
| CIE-LCH | lch(32.24, 50.41, 290.34°) |
| OKLab | oklab(42.21% -0.0117 -0.1359) |
| OKLCH | oklch(42.21% 0.136 265.1) |
| XYZ | xyz(8.7123, 7.1910, 30.2010) |
| Luminance | 0.0719 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.20
Cobalt
#0047AB
ΔE00 3.16
Darkish Blue
#014182
ΔE00 4.85
Dusk Blue
#26538D
ΔE00 5.21
Twilight Blue
#0A437A
ΔE00 5.68
Sapphire
#0F52BA
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#284797 #977828
analogous
#287F97 #284797 #402897
triadic
#284797 #972847 #479728
tetradic
#284797 #97287F #977828 #289740
square
#284797 #97287F #977828 #289740
split-complementary
#284797 #974028 #7F9728
monochromatic
#0E1A36 #1B3067 #284797 #355EC7 #6483D6
Accessibility & contrast
On white
8.61
#284797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#284797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #284797
8.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##284797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##284797 | 1.00 | 8.61 | 2.44 | 8.61 |
| #FFFFFF | 8.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #284797; /* rgb */ color: rgb(40, 71, 151); /* oklch */ color: oklch(42.2% 0.136 265.1);
Tailwind
colors: {
custom: {
50: '#7179b6',
500: '#284797',
950: '#000000',
},
}SCSS
$custom: #284797; $custom-light: #7179b6; $custom-dark: #000000;
JSON
{
"hex": "#284797",
"rgb": {
"r": 40,
"g": 71,
"b": 151
},
"hsl": {
"h": 223.243,
"s": 58.115,
"l": 37.451
},
"oklch": {
"l": 0.42209,
"c": 0.13643,
"h": 265.1
},
"luminance": 0.07192
}Semantic roles & 50–950 ramp
primary
#284797
secondary
#BCA25F
accent
#B646E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80