#334271#334271
#334271 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.0% C 0.082 H 269.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #334271 |
|---|---|
| RGB | rgb(51, 66, 113) |
| HSL | hsl(225, 38%, 32%) |
| HSV | hsv(225, 55%, 44%) |
| CMYK | cmyk(54.9%, 41.6%, 0%, 55.7%) |
| CIE-LAB | lab(28.88, 8.82, -29.04) |
| CIE-LCH | lch(28.88, 30.35, 286.89°) |
| OKLab | oklab(39% -0.0014 -0.0822) |
| OKLCH | oklch(39% 0.082 269) |
| XYZ | xyz(6.2931, 5.7921, 16.4059) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 6.28
Twilight Blue
#0A437A
ΔE00 6.44
Darkish Blue
#014182
ΔE00 6.48
Marine Blue
#01386A
ΔE00 6.66
Twilight
#4E518B
ΔE00 6.89
Dusk
#4E5481
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334271 #716233
analogous
#336171 #334271 #433371
triadic
#334271 #713342 #427133
tetradic
#334271 #713361 #716233 #337143
square
#334271 #713361 #716233 #337143
split-complementary
#334271 #714333 #617133
monochromatic
#0D111D #202947 #334271 #465B9B #6579B9
Accessibility & contrast
On white
9.73
#334271 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#334271 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334271
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334271 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334271 | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F4773
Deuteranopia (green-blind)
#284270
Tritanopia (blue-blind)
#164C54
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #334271; /* rgb */ color: rgb(51, 66, 113); /* oklch */ color: oklch(39.0% 0.082 269.0);
Tailwind
colors: {
custom: {
50: '#6f769a',
500: '#334271',
950: '#000000',
},
}SCSS
$custom: #334271; $custom-light: #6f769a; $custom-dark: #000000;
JSON
{
"hex": "#334271",
"rgb": {
"r": 51,
"g": 66,
"b": 113
},
"hsl": {
"h": 225.484,
"s": 37.805,
"l": 32.157
},
"oklch": {
"l": 0.39003,
"c": 0.08225,
"h": 269
},
"luminance": 0.05792
}Semantic roles & 50–950 ramp
primary
#334271
secondary
#A2915E
accent
#B25ACE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E