#334FAC#334FAC
#334FAC is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.152 H 267.4°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).
Color values
| HEX | #334FAC |
|---|---|
| RGB | rgb(51, 79, 172) |
| HSL | hsl(226, 54%, 44%) |
| HSV | hsv(226, 70%, 67%) |
| CMYK | cmyk(70.3%, 54.1%, 0%, 32.5%) |
| CIE-LAB | lab(36.51, 21.73, -52.95) |
| CIE-LCH | lch(36.51, 57.24, 292.32°) |
| OKLab | oklab(46.06% -0.0068 -0.1523) |
| OKLCH | oklch(46.06% 0.152 267.4) |
| XYZ | xyz(11.6050, 9.2732, 40.2000) |
| Luminance | 0.0927 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.38
Cobalt
#0047AB
ΔE00 3.75
Cobalt (survey)
#1E488F
ΔE00 5.20
Blue Blue
#2242C7
ΔE00 5.58
Denim Blue
#3B5B92
ΔE00 5.66
Dusk Blue
#26538D
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FAC #AC9033
analogous
#338BAC #334FAC #5333AC
triadic
#334FAC #AC334F #4FAC33
tetradic
#334FAC #AC338B #AC9033 #33AC53
square
#334FAC #AC338B #AC9033 #33AC53
split-complementary
#334FAC #AC5333 #8BAC33
monochromatic
#17244E #25397D #334FAC #516DCB #8095D9
Accessibility & contrast
On white
7.36
#334FAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#334FAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FAC
7.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FAC | 1.00 | 7.36 | 2.85 | 7.36 |
| #FFFFFF | 7.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#095CAF
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334fac; /* rgb */ color: rgb(51, 79, 172); /* oklch */ color: oklch(46.1% 0.152 267.4);
Tailwind
colors: {
custom: {
50: '#7a7fc5',
500: '#334fac',
950: '#000000',
},
}SCSS
$custom: #334fac; $custom-light: #7a7fc5; $custom-dark: #000000;
JSON
{
"hex": "#334fac",
"rgb": {
"r": 51,
"g": 79,
"b": 172
},
"hsl": {
"h": 226.116,
"s": 54.26,
"l": 43.725
},
"oklch": {
"l": 0.46064,
"c": 0.15247,
"h": 267.4
},
"luminance": 0.09274
}Semantic roles & 50–950 ramp
primary
#334FAC
secondary
#C2B178
accent
#BC4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82