#283171#283171
#283171 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.110 H 273.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).
Color values
| HEX | #283171 |
|---|---|
| RGB | rgb(40, 49, 113) |
| HSL | hsl(233, 48%, 30%) |
| HSV | hsv(233, 65%, 44%) |
| CMYK | cmyk(64.6%, 56.6%, 0%, 55.7%) |
| CIE-LAB | lab(23.13, 18.08, -38.29) |
| CIE-LCH | lch(23.13, 42.34, 295.28°) |
| OKLab | oklab(34.43% 0.0061 -0.1098) |
| OKLCH | oklch(34.43% 0.11 273.2) |
| XYZ | xyz(4.9530, 3.8396, 16.0997) |
| Luminance | 0.0384 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.71
Darkslateblue
#483D8B
ΔE00 6.84
Marine Blue
#01386A
ΔE00 7.28
Midnight Blue
#191970
ΔE00 7.35
Navy Blue
#1B2A4A
ΔE00 7.57
Blueberry
#464196
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#283171 #716828
analogous
#285571 #283171 #442871
triadic
#283171 #712831 #317128
tetradic
#283171 #712855 #716828 #287144
square
#283171 #712855 #716828 #287144
split-complementary
#283171 #714428 #557128
monochromatic
#080A17 #181D44 #283171 #38459E #5260C2
Accessibility & contrast
On white
11.88
#283171 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#283171 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #283171
11.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##283171 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##283171 | 1.00 | 11.88 | 1.77 | 11.88 |
| #FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#063A73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #283171; /* rgb */ color: rgb(40, 49, 113); /* oklch */ color: oklch(34.4% 0.110 273.2);
Tailwind
colors: {
custom: {
50: '#6a689a',
500: '#283171',
950: '#000000',
},
}SCSS
$custom: #283171; $custom-light: #6a689a; $custom-dark: #000000;
JSON
{
"hex": "#283171",
"rgb": {
"r": 40,
"g": 49,
"b": 113
},
"hsl": {
"h": 232.603,
"s": 47.712,
"l": 30
},
"oklch": {
"l": 0.34434,
"c": 0.11002,
"h": 273.2
},
"luminance": 0.0384
}Semantic roles & 50–950 ramp
primary
#283171
secondary
#A39952
accent
#C750D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E