#2F40B3#2F40B3
#2F40B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.182 H 270.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2F40B3 |
|---|---|
| RGB | rgb(47, 64, 179) |
| HSL | hsl(232, 58%, 44%) |
| HSV | hsv(232, 74%, 70%) |
| CMYK | cmyk(73.7%, 64.2%, 0%, 29.8%) |
| CIE-LAB | lab(32.97, 33.60, -62.87) |
| CIE-LCH | lch(32.97, 71.29, 298.12°) |
| OKLab | oklab(43.55% 0.0009 -0.1817) |
| OKLCH | oklch(43.55% 0.182 270.3) |
| XYZ | xyz(11.1396, 7.5246, 43.5044) |
| Luminance | 0.0753 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.63
Blue Blue
#2242C7
ΔE00 2.68
Ocean Blue
#4F42B5
ΔE00 4.34
Cobalt
#0047AB
ΔE00 5.12
Blueberry
#464196
ΔE00 5.44
Blue (survey)
#0343DF
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F40B3 #B3A22F
analogous
#2F82B3 #2F40B3 #602FB3
triadic
#2F40B3 #B32F40 #40B32F
tetradic
#2F40B3 #B32F82 #B3A22F #2FB360
square
#2F40B3 #B32F82 #B3A22F #2FB360
split-complementary
#2F40B3 #B3602F #82B32F
monochromatic
#161D52 #222F83 #2F40B3 #4F5FD1 #7F8BDD
Accessibility & contrast
On white
8.38
#2F40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2F40B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F40B3
8.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F40B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F40B3 | 1.00 | 8.38 | 2.51 | 8.38 |
| #FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2f40b3; /* rgb */ color: rgb(47, 64, 179); /* oklch */ color: oklch(43.6% 0.182 270.3);
Tailwind
colors: {
custom: {
50: '#7b75cb',
500: '#2f40b3',
950: '#000000',
},
}SCSS
$custom: #2f40b3; $custom-light: #7b75cb; $custom-dark: #000000;
JSON
{
"hex": "#2f40b3",
"rgb": {
"r": 47,
"g": 64,
"b": 179
},
"hsl": {
"h": 232.273,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.43552,
"c": 0.18172,
"h": 270.3
},
"luminance": 0.07526
}Semantic roles & 50–950 ramp
primary
#2F40B3
secondary
#C6BC78
accent
#CE46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82