#2F40B2#2F40B2
#2F40B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.180 H 270.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2F40B2 |
|---|---|
| RGB | rgb(47, 64, 178) |
| HSL | hsl(232, 58%, 44%) |
| HSV | hsv(232, 74%, 70%) |
| CMYK | cmyk(73.6%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(32.88, 33.24, -62.42) |
| CIE-LCH | lch(32.88, 70.72, 298.03°) |
| OKLab | oklab(43.46% 0.0009 -0.1804) |
| OKLCH | oklch(43.46% 0.18 270.3) |
| XYZ | xyz(11.0388, 7.4843, 42.9737) |
| Luminance | 0.0748 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.58
Blue Blue
#2242C7
ΔE00 2.80
Ocean Blue
#4F42B5
ΔE00 4.38
Cobalt
#0047AB
ΔE00 5.06
Blueberry
#464196
ΔE00 5.34
Blue (survey)
#0343DF
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F40B2 #B2A12F
analogous
#2F82B2 #2F40B2 #602FB2
triadic
#2F40B2 #B22F40 #40B22F
tetradic
#2F40B2 #B22F82 #B2A12F #2FB260
square
#2F40B2 #B22F82 #B2A12F #2FB260
split-complementary
#2F40B2 #B2602F #82B22F
monochromatic
#151D51 #222F82 #2F40B2 #4E5FD0 #7E8BDD
Accessibility & contrast
On white
8.41
#2F40B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2F40B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F40B2
8.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F40B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F40B2 | 1.00 | 8.41 | 2.50 | 8.41 |
| #FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2f40b2; /* rgb */ color: rgb(47, 64, 178); /* oklch */ color: oklch(43.5% 0.180 270.3);
Tailwind
colors: {
custom: {
50: '#7b75ca',
500: '#2f40b2',
950: '#000000',
},
}SCSS
$custom: #2f40b2; $custom-light: #7b75ca; $custom-dark: #000000;
JSON
{
"hex": "#2f40b2",
"rgb": {
"r": 47,
"g": 64,
"b": 178
},
"hsl": {
"h": 232.214,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.43461,
"c": 0.1804,
"h": 270.3
},
"luminance": 0.07485
}Semantic roles & 50–950 ramp
primary
#2F40B2
secondary
#C6BC77
accent
#CD46E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82