#2F42C0#2F42C0
#2F42C0 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.196 H 269.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42C0 |
|---|---|
| RGB | rgb(47, 66, 192) |
| HSL | hsl(232, 61%, 47%) |
| HSV | hsv(232, 76%, 75%) |
| CMYK | cmyk(75.5%, 65.6%, 0%, 24.7%) |
| CIE-LAB | lab(34.61, 37.01, -67.86) |
| CIE-LCH | lch(34.61, 77.29, 298.61°) |
| OKLab | oklab(45.11% -0.0011 -0.1963) |
| OKLCH | oklch(45.11% 0.196 269.7) |
| XYZ | xyz(12.6317, 8.3052, 50.7963) |
| Luminance | 0.0831 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.15
Blue (survey)
#0343DF
ΔE00 3.79
Sapphire (survey)
#2138AB
ΔE00 4.09
Ocean Blue
#4F42B5
ΔE00 4.24
Blue With A Hint Of Purple
#533CC6
ΔE00 5.13
Cobalt
#0047AB
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42C0 #C0AD2F
analogous
#2F8BC0 #2F42C0 #652FC0
triadic
#2F42C0 #C02F42 #42C02F
tetradic
#2F42C0 #C02F8B #C0AD2F #2FC065
square
#2F42C0 #C02F8B #C0AD2F #2FC065
split-complementary
#2F42C0 #C0652F #8BC02F
monochromatic
#17205E #23318F #2F42C0 #5667D6 #8893E2
Accessibility & contrast
On white
7.89
#2F42C0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#2F42C0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42C0
7.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42C0 | 1.00 | 7.89 | 2.66 | 7.89 |
| #FFFFFF | 7.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004BBE
Tritanopia (blue-blind)
#00647B
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #2f42c0; /* rgb */ color: rgb(47, 66, 192); /* oklch */ color: oklch(45.1% 0.196 269.7);
Tailwind
colors: {
custom: {
50: '#7e76d4',
500: '#2f42c0',
950: '#000000',
},
}SCSS
$custom: #2f42c0; $custom-light: #7e76d4; $custom-dark: #000000;
JSON
{
"hex": "#2f42c0",
"rgb": {
"r": 47,
"g": 66,
"b": 192
},
"hsl": {
"h": 232.138,
"s": 60.669,
"l": 46.863
},
"oklch": {
"l": 0.45107,
"c": 0.19629,
"h": 269.7
},
"luminance": 0.08307
}Semantic roles & 50–950 ramp
primary
#2F42C0
secondary
#CBC17F
accent
#CF44E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83