#2F2B98#2F2B98
#2F2B98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.171 H 275.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2B98 |
|---|---|
| RGB | rgb(47, 43, 152) |
| HSL | hsl(242, 56%, 38%) |
| HSV | hsv(242, 72%, 60%) |
| CMYK | cmyk(69.1%, 71.7%, 0%, 40.4%) |
| CIE-LAB | lab(25.56, 37.23, -58.75) |
| CIE-LCH | lch(25.56, 69.56, 302.36°) |
| OKLab | oklab(37.4% 0.0175 -0.1697) |
| OKLCH | oklch(37.4% 0.171 275.9) |
| XYZ | xyz(7.7018, 4.5984, 30.1814) |
| Luminance | 0.0460 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.71
Royal
#0C1793
ΔE00 5.04
Indigo Blue
#3A18B1
ΔE00 5.38
Cobalt Blue
#030AA7
ΔE00 6.54
Blueberry
#464196
ΔE00 6.65
Darkslateblue
#483D8B
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2B98 #94982B
analogous
#2B5D98 #2F2B98 #652B98
triadic
#2F2B98 #982F2B #2B982F
tetradic
#2F2B98 #982B5D #94982B #2B9865
square
#2F2B98 #982B5D #94982B #2B9865
split-complementary
#2F2B98 #98652B #5D982B
monochromatic
#111039 #201E68 #2F2B98 #3E39C7 #6D69D5
Accessibility & contrast
On white
10.94
#2F2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#2F2B98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2B98
10.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2B98 | 1.00 | 10.94 | 1.92 | 10.94 |
| #FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f2b98; /* rgb */ color: rgb(47, 43, 152); /* oklch */ color: oklch(37.4% 0.171 275.9);
Tailwind
colors: {
custom: {
50: '#7765b7',
500: '#2f2b98',
950: '#000000',
},
}SCSS
$custom: #2f2b98; $custom-light: #7765b7; $custom-dark: #000000;
JSON
{
"hex": "#2f2b98",
"rgb": {
"r": 47,
"g": 43,
"b": 152
},
"hsl": {
"h": 242.202,
"s": 55.897,
"l": 38.235
},
"oklch": {
"l": 0.37403,
"c": 0.17063,
"h": 275.9
},
"luminance": 0.04599
}Semantic roles & 50–950 ramp
primary
#2F2B98
secondary
#B8BB64
accent
#DF49DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80