#334FBA#334FBA
#334FBA is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.2% C 0.172 H 268.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #334FBA |
|---|---|
| RGB | rgb(51, 79, 186) |
| HSL | hsl(228, 57%, 46%) |
| HSV | hsv(228, 73%, 73%) |
| CMYK | cmyk(72.6%, 57.5%, 0%, 27.1%) |
| CIE-LAB | lab(37.55, 26.92, -59.52) |
| CIE-LCH | lch(37.55, 65.33, 294.34°) |
| OKLab | oklab(47.18% -0.006 -0.1716) |
| OKLCH | oklch(47.18% 0.172 268) |
| XYZ | xyz(13.0211, 9.8396, 47.6578) |
| Luminance | 0.0984 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.46
Blue Blue
#2242C7
ΔE00 4.33
Cobalt
#0047AB
ΔE00 4.57
Blue (survey)
#0343DF
ΔE00 5.68
Warm Blue
#4B57DB
ΔE00 6.08
Ocean Blue
#4F42B5
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FBA #BA9E33
analogous
#3393BA #334FBA #5B33BA
triadic
#334FBA #BA334F #4FBA33
tetradic
#334FBA #BA3393 #BA9E33 #33BA5B
square
#334FBA #BA3393 #BA9E33 #33BA5B
split-complementary
#334FBA #BA5B33 #93BA33
monochromatic
#19265A #263B8A #334FBA #5972D1 #899BDF
Accessibility & contrast
On white
7.07
#334FBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#334FBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FBA
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FBA | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #334fba; /* rgb */ color: rgb(51, 79, 186); /* oklch */ color: oklch(47.2% 0.172 268.0);
Tailwind
colors: {
custom: {
50: '#7d80d0',
500: '#334fba',
950: '#000000',
},
}SCSS
$custom: #334fba; $custom-light: #7d80d0; $custom-dark: #000000;
JSON
{
"hex": "#334fba",
"rgb": {
"r": 51,
"g": 79,
"b": 186
},
"hsl": {
"h": 227.556,
"s": 56.962,
"l": 46.471
},
"oklch": {
"l": 0.47182,
"c": 0.17174,
"h": 268
},
"luminance": 0.09841
}Semantic roles & 50–950 ramp
primary
#334FBA
secondary
#C9BA80
accent
#C148E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82