#2F42AE#2F42AE
#2F42AE is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.173 H 269.9°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2F42AE |
|---|---|
| RGB | rgb(47, 66, 174) |
| HSL | hsl(231, 57%, 43%) |
| HSV | hsv(231, 73%, 68%) |
| CMYK | cmyk(73%, 62.1%, 0%, 31.8%) |
| CIE-LAB | lab(33.04, 30.48, -59.79) |
| CIE-LCH | lch(33.04, 67.11, 297.02°) |
| OKLab | oklab(43.47% -0.0003 -0.1727) |
| OKLCH | oklch(43.47% 0.173 269.9) |
| XYZ | xyz(10.7579, 7.5556, 40.9276) |
| Luminance | 0.0756 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.97
Blue Blue
#2242C7
ΔE00 3.28
Cobalt
#0047AB
ΔE00 4.40
Ocean Blue
#4F42B5
ΔE00 4.77
Blueberry
#464196
ΔE00 5.06
Blue (survey)
#0343DF
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F42AE #AE9B2F
analogous
#2F81AE #2F42AE #5C2FAE
triadic
#2F42AE #AE2F42 #42AE2F
tetradic
#2F42AE #AE2F81 #AE9B2F #2FAE5C
square
#2F42AE #AE2F81 #AE9B2F #2FAE5C
split-complementary
#2F42AE #AE5C2F #81AE2F
monochromatic
#151D4E #22307E #2F42AE #4C5FCF #7C8ADC
Accessibility & contrast
On white
8.36
#2F42AE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2F42AE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F42AE
8.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F42AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F42AE | 1.00 | 8.36 | 2.51 | 8.36 |
| #FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2f42ae; /* rgb */ color: rgb(47, 66, 174); /* oklch */ color: oklch(43.5% 0.173 269.9);
Tailwind
colors: {
custom: {
50: '#7a76c7',
500: '#2f42ae',
950: '#000000',
},
}SCSS
$custom: #2f42ae; $custom-light: #7a76c7; $custom-dark: #000000;
JSON
{
"hex": "#2f42ae",
"rgb": {
"r": 47,
"g": 66,
"b": 174
},
"hsl": {
"h": 231.024,
"s": 57.466,
"l": 43.333
},
"oklch": {
"l": 0.43469,
"c": 0.17266,
"h": 269.9
},
"luminance": 0.07557
}Semantic roles & 50–950 ramp
primary
#2F42AE
secondary
#C4B875
accent
#CA47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82