#2F34B6#2F34B6
#2F34B6 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.8% C 0.199 H 272.2°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2F34B6 |
|---|---|
| RGB | rgb(47, 52, 182) |
| HSL | hsl(238, 59%, 45%) |
| HSV | hsv(238, 74%, 71%) |
| CMYK | cmyk(74.2%, 71.4%, 0%, 28.6%) |
| CIE-LAB | lab(30.49, 42.10, -68.73) |
| CIE-LCH | lch(30.49, 80.60, 301.49°) |
| OKLab | oklab(41.83% 0.0076 -0.1989) |
| OKLCH | oklch(41.83% 0.199 272.2) |
| XYZ | xyz(10.8409, 6.4366, 44.9179) |
| Luminance | 0.0644 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.72
Blue Blue
#2242C7
ΔE00 4.60
Ocean Blue
#4F42B5
ΔE00 5.04
Blue With A Hint Of Purple
#533CC6
ΔE00 5.31
Blurple
#5539CC
ΔE00 5.78
Indigo Blue
#3A18B1
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F34B6 #B6B12F
analogous
#2F77B6 #2F34B6 #6E2FB6
triadic
#2F34B6 #B62F34 #34B62F
tetradic
#2F34B6 #B62F77 #B6B12F #2FB66E
square
#2F34B6 #B62F77 #B6B12F #2FB66E
split-complementary
#2F34B6 #B66E2F #77B62F
monochromatic
#161855 #222685 #2F34B6 #5055D2 #8184DE
Accessibility & contrast
On white
9.18
#2F34B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#2F34B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F34B6
9.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F34B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F34B6 | 1.00 | 9.18 | 2.29 | 9.18 |
| #FFFFFF | 9.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0041B4
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2f34b6; /* rgb */ color: rgb(47, 52, 182); /* oklch */ color: oklch(41.8% 0.199 272.2);
Tailwind
colors: {
custom: {
50: '#7d6ccd',
500: '#2f34b6',
950: '#000000',
},
}SCSS
$custom: #2f34b6; $custom-light: #7d6ccd; $custom-dark: #000000;
JSON
{
"hex": "#2f34b6",
"rgb": {
"r": 47,
"g": 52,
"b": 182
},
"hsl": {
"h": 237.778,
"s": 58.952,
"l": 44.902
},
"oklch": {
"l": 0.41834,
"c": 0.19903,
"h": 272.2
},
"luminance": 0.06438
}Semantic roles & 50–950 ramp
primary
#2F34B6
secondary
#C7C579
accent
#DC46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82