#334DB1#334DB1
#334DB1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.162 H 268.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).
Color values
| HEX | #334DB1 |
|---|---|
| RGB | rgb(51, 77, 177) |
| HSL | hsl(228, 55%, 45%) |
| HSV | hsv(228, 71%, 69%) |
| CMYK | cmyk(71.2%, 56.5%, 0%, 30.6%) |
| CIE-LAB | lab(36.34, 24.91, -56.19) |
| CIE-LCH | lch(36.34, 61.46, 293.91°) |
| OKLab | oklab(46.06% -0.0048 -0.1619) |
| OKLCH | oklch(46.06% 0.162 268.3) |
| XYZ | xyz(11.9522, 9.1847, 42.7294) |
| Luminance | 0.0919 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.74
Cobalt
#0047AB
ΔE00 3.81
Blue Blue
#2242C7
ΔE00 4.54
Cobalt (survey)
#1E488F
ΔE00 5.85
Ocean Blue
#4F42B5
ΔE00 6.30
Sapphire (survey)
#2138AB
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334DB1 #B19733
analogous
#338CB1 #334DB1 #5833B1
triadic
#334DB1 #B1334D #4DB133
tetradic
#334DB1 #B1338C #B19733 #33B158
square
#334DB1 #B1338C #B19733 #33B158
split-complementary
#334DB1 #B15833 #8CB133
monochromatic
#182452 #253881 #334DB1 #546DCE #8395DB
Accessibility & contrast
On white
7.40
#334DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#334DB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334DB1
7.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334DB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334DB1 | 1.00 | 7.40 | 2.84 | 7.40 |
| #FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334db1; /* rgb */ color: rgb(51, 77, 177); /* oklch */ color: oklch(46.1% 0.162 268.3);
Tailwind
colors: {
custom: {
50: '#7b7ec9',
500: '#334db1',
950: '#000000',
},
}SCSS
$custom: #334db1; $custom-light: #7b7ec9; $custom-dark: #000000;
JSON
{
"hex": "#334db1",
"rgb": {
"r": 51,
"g": 77,
"b": 177
},
"hsl": {
"h": 227.619,
"s": 55.263,
"l": 44.706
},
"oklch": {
"l": 0.46055,
"c": 0.16194,
"h": 268.3
},
"luminance": 0.09186
}Semantic roles & 50–950 ramp
primary
#334DB1
secondary
#C5B67B
accent
#C049DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82