#334AA1#334AA1
#334AA1 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.2% C 0.143 H 268.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).
Color values
| HEX | #334AA1 |
|---|---|
| RGB | rgb(51, 74, 161) |
| HSL | hsl(227, 52%, 42%) |
| HSV | hsv(227, 68%, 63%) |
| CMYK | cmyk(68.3%, 54%, 0%, 36.9%) |
| CIE-LAB | lab(34.34, 20.96, -49.88) |
| CIE-LCH | lch(34.34, 54.11, 292.80°) |
| OKLab | oklab(44.18% -0.0032 -0.1433) |
| OKLCH | oklch(44.18% 0.143 268.7) |
| XYZ | xyz(10.2448, 8.1736, 34.7491) |
| Luminance | 0.0818 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.56
Cobalt (survey)
#1E488F
ΔE00 4.14
Sapphire
#0F52BA
ΔE00 5.04
Blueberry
#464196
ΔE00 5.38
Blue Blue
#2242C7
ΔE00 5.90
Sapphire (survey)
#2138AB
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AA1 #A18A33
analogous
#3381A1 #334AA1 #5333A1
triadic
#334AA1 #A1334A #4AA133
tetradic
#334AA1 #A13381 #A18A33 #33A153
square
#334AA1 #A13381 #A18A33 #33A153
split-complementary
#334AA1 #A15333 #81A133
monochromatic
#161F44 #243573 #334AA1 #4B65C6 #7A8DD5
Accessibility & contrast
On white
7.97
#334AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#334AA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AA1
7.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AA1 | 1.00 | 7.97 | 2.64 | 7.97 |
| #FFFFFF | 7.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D56A4
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #334aa1; /* rgb */ color: rgb(51, 74, 161); /* oklch */ color: oklch(44.2% 0.143 268.7);
Tailwind
colors: {
custom: {
50: '#787cbd',
500: '#334aa1',
950: '#000000',
},
}SCSS
$custom: #334aa1; $custom-light: #787cbd; $custom-dark: #000000;
JSON
{
"hex": "#334aa1",
"rgb": {
"r": 51,
"g": 74,
"b": 161
},
"hsl": {
"h": 227.455,
"s": 51.887,
"l": 41.569
},
"oklch": {
"l": 0.44179,
"c": 0.14339,
"h": 268.7
},
"luminance": 0.08175
}Semantic roles & 50–950 ramp
primary
#334AA1
secondary
#BDAE72
accent
#BD4CDB
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81