#2F42C1#2F42C1
#2F42C1 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.2% C 0.198 H 269.7°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42C1 |
|---|---|
| RGB | rgb(47, 66, 193) |
| HSL | hsl(232, 61%, 47%) |
| HSV | hsv(232, 76%, 76%) |
| CMYK | cmyk(75.6%, 65.8%, 0%, 24.3%) |
| CIE-LAB | lab(34.70, 37.37, -68.29) |
| CIE-LCH | lch(34.70, 77.85, 298.69°) |
| OKLab | oklab(45.2% -0.0012 -0.1976) |
| OKLCH | oklch(45.2% 0.198 269.7) |
| XYZ | xyz(12.7428, 8.3496, 51.3818) |
| Luminance | 0.0835 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.08
Blue (survey)
#0343DF
ΔE00 3.68
Sapphire (survey)
#2138AB
ΔE00 4.19
Ocean Blue
#4F42B5
ΔE00 4.25
Blue With A Hint Of Purple
#533CC6
ΔE00 5.07
Blurple
#5539CC
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42C1 #C1AE2F
analogous
#2F8BC1 #2F42C1 #652FC1
triadic
#2F42C1 #C12F42 #42C12F
tetradic
#2F42C1 #C12F8B #C1AE2F #2FC165
square
#2F42C1 #C12F8B #C1AE2F #2FC165
split-complementary
#2F42C1 #C1652F #8BC12F
monochromatic
#17205F #233190 #2F42C1 #5768D6 #8894E2
Accessibility & contrast
On white
7.86
#2F42C1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#2F42C1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42C1
7.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42C1 | 1.00 | 7.86 | 2.67 | 7.86 |
| #FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #2f42c1; /* rgb */ color: rgb(47, 66, 193); /* oklch */ color: oklch(45.2% 0.198 269.7);
Tailwind
colors: {
custom: {
50: '#7e76d5',
500: '#2f42c1',
950: '#000000',
},
}SCSS
$custom: #2f42c1; $custom-light: #7e76d5; $custom-dark: #000000;
JSON
{
"hex": "#2f42c1",
"rgb": {
"r": 47,
"g": 66,
"b": 193
},
"hsl": {
"h": 232.192,
"s": 60.833,
"l": 47.059
},
"oklch": {
"l": 0.45201,
"c": 0.19758,
"h": 269.7
},
"luminance": 0.08351
}Semantic roles & 50–950 ramp
primary
#2F42C1
secondary
#CCC280
accent
#CF44E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83