#334BAF#334BAF
#334BAF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.162 H 268.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).
Color values
| HEX | #334BAF |
|---|---|
| RGB | rgb(51, 75, 175) |
| HSL | hsl(228, 55%, 44%) |
| HSV | hsv(228, 71%, 69%) |
| CMYK | cmyk(70.9%, 57.1%, 0%, 31.4%) |
| CIE-LAB | lab(35.65, 25.48, -56.11) |
| CIE-LCH | lch(35.65, 61.63, 294.42°) |
| OKLab | oklab(45.5% -0.0033 -0.1617) |
| OKLCH | oklch(45.5% 0.162 268.8) |
| XYZ | xyz(11.6165, 8.8299, 41.6413) |
| Luminance | 0.0883 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.69
Sapphire
#0F52BA
ΔE00 4.26
Blue Blue
#2242C7
ΔE00 4.28
Cobalt (survey)
#1E488F
ΔE00 5.71
Sapphire (survey)
#2138AB
ΔE00 5.72
Ocean Blue
#4F42B5
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BAF #AF9733
analogous
#3389AF #334BAF #5933AF
triadic
#334BAF #AF334B #4BAF33
tetradic
#334BAF #AF3389 #AF9733 #33AF59
square
#334BAF #AF3389 #AF9733 #33AF59
split-complementary
#334BAF #AF5933 #89AF33
monochromatic
#172250 #253780 #334BAF #526ACD #8293DB
Accessibility & contrast
On white
7.59
#334BAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#334BAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BAF
7.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BAF | 1.00 | 7.59 | 2.77 | 7.59 |
| #FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334baf; /* rgb */ color: rgb(51, 75, 175); /* oklch */ color: oklch(45.5% 0.162 268.8);
Tailwind
colors: {
custom: {
50: '#7b7dc8',
500: '#334baf',
950: '#000000',
},
}SCSS
$custom: #334baf; $custom-light: #7b7dc8; $custom-dark: #000000;
JSON
{
"hex": "#334baf",
"rgb": {
"r": 51,
"g": 75,
"b": 175
},
"hsl": {
"h": 228.387,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.45495,
"c": 0.1617,
"h": 268.8
},
"luminance": 0.08831
}Semantic roles & 50–950 ramp
primary
#334BAF
secondary
#C4B67A
accent
#C14ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82