#2F42BC#2F42BC
#2F42BC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.191 H 269.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42BC |
|---|---|
| RGB | rgb(47, 66, 188) |
| HSL | hsl(232, 60%, 46%) |
| HSV | hsv(232, 75%, 74%) |
| CMYK | cmyk(75%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(34.25, 35.57, -66.09) |
| CIE-LCH | lch(34.25, 75.06, 298.29°) |
| OKLab | oklab(44.74% -0.0009 -0.1911) |
| OKLCH | oklch(44.74% 0.191 269.7) |
| XYZ | xyz(12.1945, 8.1303, 48.4938) |
| Luminance | 0.0813 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.51
Sapphire (survey)
#2138AB
ΔE00 3.72
Ocean Blue
#4F42B5
ΔE00 4.24
Blue (survey)
#0343DF
ΔE00 4.28
Cobalt
#0047AB
ΔE00 5.37
Blue With A Hint Of Purple
#533CC6
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42BC #BCA92F
analogous
#2F88BC #2F42BC #622FBC
triadic
#2F42BC #BC2F42 #42BC2F
tetradic
#2F42BC #BC2F88 #BCA92F #2FBC62
square
#2F42BC #BC2F88 #BCA92F #2FBC62
split-complementary
#2F42BC #BC622F #88BC2F
monochromatic
#17205A #23318B #2F42BC #5465D4 #8591E0
Accessibility & contrast
On white
8.00
#2F42BC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#2F42BC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42BC
8.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42BC | 1.00 | 8.00 | 2.63 | 8.00 |
| #FFFFFF | 8.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #2f42bc; /* rgb */ color: rgb(47, 66, 188); /* oklch */ color: oklch(44.7% 0.191 269.7);
Tailwind
colors: {
custom: {
50: '#7d76d1',
500: '#2f42bc',
950: '#000000',
},
}SCSS
$custom: #2f42bc; $custom-light: #7d76d1; $custom-dark: #000000;
JSON
{
"hex": "#2f42bc",
"rgb": {
"r": 47,
"g": 66,
"b": 188
},
"hsl": {
"h": 231.915,
"s": 60,
"l": 46.078
},
"oklch": {
"l": 0.44736,
"c": 0.19114,
"h": 269.7
},
"luminance": 0.08132
}Semantic roles & 50–950 ramp
primary
#2F42BC
secondary
#CAC07D
accent
#CE45E3
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83