#2F40B1#2F40B1
#2F40B1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.179 H 270.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2F40B1 |
|---|---|
| RGB | rgb(47, 64, 177) |
| HSL | hsl(232, 58%, 44%) |
| HSV | hsv(232, 73%, 69%) |
| CMYK | cmyk(73.4%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(32.80, 32.87, -61.97) |
| CIE-LCH | lch(32.80, 70.15, 297.95°) |
| OKLab | oklab(43.37% 0.001 -0.1791) |
| OKLCH | oklch(43.37% 0.179 270.3) |
| XYZ | xyz(10.9388, 7.4443, 42.4469) |
| Luminance | 0.0745 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.53
Blue Blue
#2242C7
ΔE00 2.93
Ocean Blue
#4F42B5
ΔE00 4.43
Cobalt
#0047AB
ΔE00 5.01
Blueberry
#464196
ΔE00 5.25
Blue (survey)
#0343DF
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F40B1 #B1A02F
analogous
#2F81B1 #2F40B1 #5F2FB1
triadic
#2F40B1 #B12F40 #40B12F
tetradic
#2F40B1 #B12F81 #B1A02F #2FB15F
square
#2F40B1 #B12F81 #B1A02F #2FB15F
split-complementary
#2F40B1 #B15F2F #81B12F
monochromatic
#151D50 #222F81 #2F40B1 #4D5ED0 #7E8ADD
Accessibility & contrast
On white
8.44
#2F40B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#2F40B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F40B1
8.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F40B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F40B1 | 1.00 | 8.44 | 2.49 | 8.44 |
| #FFFFFF | 8.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2f40b1; /* rgb */ color: rgb(47, 64, 177); /* oklch */ color: oklch(43.4% 0.179 270.3);
Tailwind
colors: {
custom: {
50: '#7b74c9',
500: '#2f40b1',
950: '#000000',
},
}SCSS
$custom: #2f40b1; $custom-light: #7b74c9; $custom-dark: #000000;
JSON
{
"hex": "#2f40b1",
"rgb": {
"r": 47,
"g": 64,
"b": 177
},
"hsl": {
"h": 232.154,
"s": 58.036,
"l": 43.922
},
"oklch": {
"l": 0.4337,
"c": 0.17907,
"h": 270.3
},
"luminance": 0.07445
}Semantic roles & 50–950 ramp
primary
#2F40B1
secondary
#C5BB76
accent
#CD47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82