#2F40C0#2F40C0
#2F40C0 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.199 H 270.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2F40C0 |
|---|---|
| RGB | rgb(47, 64, 192) |
| HSL | hsl(233, 61%, 47%) |
| HSV | hsv(233, 76%, 75%) |
| CMYK | cmyk(75.5%, 66.7%, 0%, 24.7%) |
| CIE-LAB | lab(34.14, 38.26, -68.63) |
| CIE-LCH | lch(34.14, 78.58, 299.14°) |
| OKLab | oklab(44.76% 0.0001 -0.1986) |
| OKLCH | oklch(44.76% 0.199 270) |
| XYZ | xyz(12.5169, 8.0755, 50.7580) |
| Luminance | 0.0808 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.38
Sapphire (survey)
#2138AB
ΔE00 3.79
Blue (survey)
#0343DF
ΔE00 3.93
Ocean Blue
#4F42B5
ΔE00 4.13
Blue With A Hint Of Purple
#533CC6
ΔE00 4.86
Blurple
#5539CC
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F40C0 #C0AF2F
analogous
#2F88C0 #2F40C0 #672FC0
triadic
#2F40C0 #C02F40 #40C02F
tetradic
#2F40C0 #C02F88 #C0AF2F #2FC067
square
#2F40C0 #C02F88 #C0AF2F #2FC067
split-complementary
#2F40C0 #C0672F #88C02F
monochromatic
#171F5E #23308F #2F40C0 #5665D6 #8892E2
Accessibility & contrast
On white
8.03
#2F40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#2F40C0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F40C0
8.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F40C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F40C0 | 1.00 | 8.03 | 2.62 | 8.03 |
| #FFFFFF | 8.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0049BE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2f40c0; /* rgb */ color: rgb(47, 64, 192); /* oklch */ color: oklch(44.8% 0.199 270.0);
Tailwind
colors: {
custom: {
50: '#7e75d4',
500: '#2f40c0',
950: '#000000',
},
}SCSS
$custom: #2f40c0; $custom-light: #7e75d4; $custom-dark: #000000;
JSON
{
"hex": "#2f40c0",
"rgb": {
"r": 47,
"g": 64,
"b": 192
},
"hsl": {
"h": 232.966,
"s": 60.669,
"l": 46.863
},
"oklch": {
"l": 0.44764,
"c": 0.19856,
"h": 270
},
"luminance": 0.08077
}Semantic roles & 50–950 ramp
primary
#2F40C0
secondary
#CBC37F
accent
#D144E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83