#2F34B2#2F34B2
#2F34B2 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.4% C 0.194 H 272.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2F34B2 |
|---|---|
| RGB | rgb(47, 52, 178) |
| HSL | hsl(238, 58%, 44%) |
| HSV | hsv(238, 74%, 70%) |
| CMYK | cmyk(73.6%, 70.8%, 0%, 30.2%) |
| CIE-LAB | lab(30.09, 40.73, -67.00) |
| CIE-LCH | lch(30.09, 78.41, 301.29°) |
| OKLab | oklab(41.43% 0.0082 -0.1938) |
| OKLCH | oklch(41.43% 0.194 272.4) |
| XYZ | xyz(10.4335, 6.2736, 42.7719) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.38
Blue Blue
#2242C7
ΔE00 4.85
Ocean Blue
#4F42B5
ΔE00 5.13
Blue With A Hint Of Purple
#533CC6
ΔE00 5.64
Indigo Blue
#3A18B1
ΔE00 5.97
Blurple
#5539CC
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F34B2 #B2AD2F
analogous
#2F76B2 #2F34B2 #6C2FB2
triadic
#2F34B2 #B22F34 #34B22F
tetradic
#2F34B2 #B22F76 #B2AD2F #2FB26C
square
#2F34B2 #B22F76 #B2AD2F #2FB26C
split-complementary
#2F34B2 #B26C2F #76B22F
monochromatic
#151851 #222682 #2F34B2 #4E53D0 #7E82DD
Accessibility & contrast
On white
9.31
#2F34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#2F34B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F34B2
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F34B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F34B2 | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0041B0
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2f34b2; /* rgb */ color: rgb(47, 52, 178); /* oklch */ color: oklch(41.4% 0.194 272.4);
Tailwind
colors: {
custom: {
50: '#7c6cca',
500: '#2f34b2',
950: '#000000',
},
}SCSS
$custom: #2f34b2; $custom-light: #7c6cca; $custom-dark: #000000;
JSON
{
"hex": "#2f34b2",
"rgb": {
"r": 47,
"g": 52,
"b": 178
},
"hsl": {
"h": 237.71,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.41431,
"c": 0.19401,
"h": 272.4
},
"luminance": 0.06275
}Semantic roles & 50–950 ramp
primary
#2F34B2
secondary
#C6C377
accent
#DC46E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82