#2F2A9C#2F2A9C
#2F2A9C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.177 H 275.7°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2A9C |
|---|---|
| RGB | rgb(47, 42, 156) |
| HSL | hsl(243, 58%, 39%) |
| HSV | hsv(243, 73%, 61%) |
| CMYK | cmyk(69.9%, 73.1%, 0%, 38.8%) |
| CIE-LAB | lab(25.74, 39.19, -60.90) |
| CIE-LCH | lch(25.74, 72.42, 302.76°) |
| OKLab | oklab(37.66% 0.0175 -0.176) |
| OKLCH | oklch(37.66% 0.177 275.7) |
| XYZ | xyz(7.9990, 4.6598, 31.9239) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 4.77
Royal
#0C1793
ΔE00 4.91
Cobalt Blue
#030AA7
ΔE00 6.12
Royal Blue (survey)
#0504AA
ΔE00 6.60
Ultramarine
#2000B1
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2A9C #979C2A
analogous
#2A5E9C #2F2A9C #682A9C
triadic
#2F2A9C #9C2F2A #2A9C2F
tetradic
#2F2A9C #9C2A5E #979C2A #2A9C68
square
#2F2A9C #9C2A5E #979C2A #2A9C68
split-complementary
#2F2A9C #9C682A #5E9C2A
monochromatic
#12103C #201D6C #2F2A9C #4039CA #6E6AD7
Accessibility & contrast
On white
10.87
#2F2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2F2A9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2A9C
10.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2A9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2A9C | 1.00 | 10.87 | 1.93 | 10.87 |
| #FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f2a9c; /* rgb */ color: rgb(47, 42, 156); /* oklch */ color: oklch(37.7% 0.177 275.7);
Tailwind
colors: {
custom: {
50: '#7865ba',
500: '#2f2a9c',
950: '#000000',
},
}SCSS
$custom: #2f2a9c; $custom-light: #7865ba; $custom-dark: #000000;
JSON
{
"hex": "#2f2a9c",
"rgb": {
"r": 47,
"g": 42,
"b": 156
},
"hsl": {
"h": 242.632,
"s": 57.576,
"l": 38.824
},
"oklch": {
"l": 0.37655,
"c": 0.17685,
"h": 275.7
},
"luminance": 0.04661
}Semantic roles & 50–950 ramp
primary
#2F2A9C
secondary
#B9BD65
accent
#E147DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81