#2F34A5#2F34A5
#2F34A5 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.177 H 273.2°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2F34A5 |
|---|---|
| RGB | rgb(47, 52, 165) |
| HSL | hsl(237, 56%, 42%) |
| HSV | hsv(237, 72%, 65%) |
| CMYK | cmyk(71.5%, 68.5%, 0%, 35.3%) |
| CIE-LAB | lab(28.84, 36.21, -61.27) |
| CIE-LCH | lch(28.84, 71.17, 300.58°) |
| OKLab | oklab(40.15% 0.0098 -0.1771) |
| OKLCH | oklch(40.15% 0.177 273.2) |
| XYZ | xyz(9.1895, 5.7760, 36.2206) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.05
Blueberry
#464196
ΔE00 5.33
Ocean Blue
#4F42B5
ΔE00 5.75
Blue Blue
#2242C7
ΔE00 5.95
Darkslateblue
#483D8B
ΔE00 6.37
Indigo Blue
#3A18B1
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F34A5 #A5A02F
analogous
#2F6FA5 #2F34A5 #652FA5
triadic
#2F34A5 #A52F34 #34A52F
tetradic
#2F34A5 #A52F6F #A5A02F #2FA565
square
#2F34A5 #A52F6F #A5A02F #2FA565
split-complementary
#2F34A5 #A5652F #6FA52F
monochromatic
#141646 #212575 #2F34A5 #474CCB #767AD8
Accessibility & contrast
On white
9.74
#2F34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#2F34A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F34A5
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F34A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F34A5 | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2f34a5; /* rgb */ color: rgb(47, 52, 165); /* oklch */ color: oklch(40.1% 0.177 273.2);
Tailwind
colors: {
custom: {
50: '#796cc1',
500: '#2f34a5',
950: '#000000',
},
}SCSS
$custom: #2f34a5; $custom-light: #796cc1; $custom-dark: #000000;
JSON
{
"hex": "#2f34a5",
"rgb": {
"r": 47,
"g": 52,
"b": 165
},
"hsl": {
"h": 237.458,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.40148,
"c": 0.17736,
"h": 273.2
},
"luminance": 0.05777
}Semantic roles & 50–950 ramp
primary
#2F34A5
secondary
#C0BD70
accent
#D949DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0712
muted
#7C7A81