#2F34B5#2F34B5
#2F34B5 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.7% C 0.198 H 272.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2F34B5 |
|---|---|
| RGB | rgb(47, 52, 181) |
| HSL | hsl(238, 59%, 45%) |
| HSV | hsv(238, 74%, 71%) |
| CMYK | cmyk(74%, 71.3%, 0%, 29%) |
| CIE-LAB | lab(30.39, 41.76, -68.30) |
| CIE-LCH | lch(30.39, 80.06, 301.44°) |
| OKLab | oklab(41.73% 0.0078 -0.1976) |
| OKLCH | oklch(41.73% 0.198 272.3) |
| XYZ | xyz(10.7380, 6.3954, 44.3756) |
| Luminance | 0.0640 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.63
Blue Blue
#2242C7
ΔE00 4.66
Ocean Blue
#4F42B5
ΔE00 5.05
Blue With A Hint Of Purple
#533CC6
ΔE00 5.39
Blurple
#5539CC
ΔE00 5.88
Indigo Blue
#3A18B1
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F34B5 #B5B02F
analogous
#2F77B5 #2F34B5 #6D2FB5
triadic
#2F34B5 #B52F34 #34B52F
tetradic
#2F34B5 #B52F77 #B5B02F #2FB56D
square
#2F34B5 #B52F77 #B5B02F #2FB56D
split-complementary
#2F34B5 #B56D2F #77B52F
monochromatic
#161854 #222684 #2F34B5 #5055D1 #8084DE
Accessibility & contrast
On white
9.21
#2F34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#2F34B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F34B5
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F34B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F34B5 | 1.00 | 9.21 | 2.28 | 9.21 |
| #FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0041B3
Tritanopia (blue-blind)
#005871
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2f34b5; /* rgb */ color: rgb(47, 52, 181); /* oklch */ color: oklch(41.7% 0.198 272.3);
Tailwind
colors: {
custom: {
50: '#7d6ccc',
500: '#2f34b5',
950: '#000000',
},
}SCSS
$custom: #2f34b5; $custom-light: #7d6ccc; $custom-dark: #000000;
JSON
{
"hex": "#2f34b5",
"rgb": {
"r": 47,
"g": 52,
"b": 181
},
"hsl": {
"h": 237.761,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.41733,
"c": 0.19778,
"h": 272.3
},
"luminance": 0.06397
}Semantic roles & 50–950 ramp
primary
#2F34B5
secondary
#C7C479
accent
#DC46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82