#334DC8#334DC8
#334DC8 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.0% C 0.193 H 268.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).
Color values
| HEX | #334DC8 |
|---|---|
| RGB | rgb(51, 77, 200) |
| HSL | hsl(230, 59%, 49%) |
| HSV | hsv(230, 75%, 78%) |
| CMYK | cmyk(74.5%, 61.5%, 0%, 21.6%) |
| CIE-LAB | lab(38.16, 33.34, -66.70) |
| CIE-LCH | lch(38.16, 74.57, 296.56°) |
| OKLab | oklab(47.99% -0.0045 -0.1927) |
| OKLCH | oklch(47.99% 0.193 268.7) |
| XYZ | xyz(14.4408, 10.1801, 55.8363) |
| Luminance | 0.1018 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.28
Blue (survey)
#0343DF
ΔE00 3.88
Warm Blue
#4B57DB
ΔE00 4.81
Sapphire
#0F52BA
ΔE00 4.82
Ocean Blue
#4F42B5
ΔE00 5.84
Cobalt
#0047AB
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334DC8 #C8AE33
analogous
#3398C8 #334DC8 #6333C8
triadic
#334DC8 #C8334D #4DC833
tetradic
#334DC8 #C83398 #C8AE33 #33C863
square
#334DC8 #C83398 #C8AE33 #33C863
split-complementary
#334DC8 #C86333 #98C833
monochromatic
#1A2766 #273A97 #334DC8 #6176D7 #92A0E3
Accessibility & contrast
On white
6.92
#334DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#334DC8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #334DC8
6.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334DC8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334DC8 | 1.00 | 6.92 | 3.04 | 6.92 |
| #FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0053C6
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #334dc8; /* rgb */ color: rgb(51, 77, 200); /* oklch */ color: oklch(48.0% 0.193 268.7);
Tailwind
colors: {
custom: {
50: '#807eda',
500: '#334dc8',
950: '#000000',
},
}SCSS
$custom: #334dc8; $custom-light: #807eda; $custom-dark: #000000;
JSON
{
"hex": "#334dc8",
"rgb": {
"r": 51,
"g": 77,
"b": 200
},
"hsl": {
"h": 229.53,
"s": 59.363,
"l": 49.216
},
"oklch": {
"l": 0.47986,
"c": 0.19278,
"h": 268.7
},
"luminance": 0.10182
}Semantic roles & 50–950 ramp
primary
#334DC8
secondary
#CEC289
accent
#C745E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83