#2F40B0#2F40B0
#2F40B0 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.178 H 270.3°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).
Color values
| HEX | #2F40B0 |
|---|---|
| RGB | rgb(47, 64, 176) |
| HSL | hsl(232, 58%, 44%) |
| HSV | hsv(232, 73%, 69%) |
| CMYK | cmyk(73.3%, 63.6%, 0%, 31%) |
| CIE-LAB | lab(32.71, 32.51, -61.52) |
| CIE-LCH | lch(32.71, 69.58, 297.86°) |
| OKLab | oklab(43.28% 0.001 -0.1777) |
| OKLCH | oklch(43.28% 0.178 270.3) |
| XYZ | xyz(10.8395, 7.4046, 41.9238) |
| Luminance | 0.0741 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.49
Blue Blue
#2242C7
ΔE00 3.06
Ocean Blue
#4F42B5
ΔE00 4.49
Cobalt
#0047AB
ΔE00 4.96
Blueberry
#464196
ΔE00 5.16
Blue (survey)
#0343DF
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F40B0 #B09F2F
analogous
#2F80B0 #2F40B0 #5E2FB0
triadic
#2F40B0 #B02F40 #40B02F
tetradic
#2F40B0 #B02F80 #B09F2F #2FB05E
square
#2F40B0 #B02F80 #B09F2F #2FB05E
split-complementary
#2F40B0 #B05E2F #80B02F
monochromatic
#151D4F #222E80 #2F40B0 #4D5ECF #7D8ADC
Accessibility & contrast
On white
8.46
#2F40B0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2F40B0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F40B0
8.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F40B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F40B0 | 1.00 | 8.46 | 2.48 | 8.46 |
| #FFFFFF | 8.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2f40b0; /* rgb */ color: rgb(47, 64, 176); /* oklch */ color: oklch(43.3% 0.178 270.3);
Tailwind
colors: {
custom: {
50: '#7a74c9',
500: '#2f40b0',
950: '#000000',
},
}SCSS
$custom: #2f40b0; $custom-light: #7a74c9; $custom-dark: #000000;
JSON
{
"hex": "#2f40b0",
"rgb": {
"r": 47,
"g": 64,
"b": 176
},
"hsl": {
"h": 232.093,
"s": 57.848,
"l": 43.725
},
"oklch": {
"l": 0.43279,
"c": 0.17775,
"h": 270.3
},
"luminance": 0.07406
}Semantic roles & 50–950 ramp
primary
#2F40B0
secondary
#C5BB76
accent
#CD47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82