#2F2F7C#2F2F7C
#2F2F7C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.127 H 277.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2F7C |
|---|---|
| RGB | rgb(47, 47, 124) |
| HSL | hsl(240, 45%, 34%) |
| HSV | hsv(240, 62%, 49%) |
| CMYK | cmyk(62.1%, 62.1%, 0%, 51.4%) |
| CIE-LAB | lab(23.97, 24.84, -43.91) |
| CIE-LCH | lch(23.97, 50.44, 299.50°) |
| OKLab | oklab(35.47% 0.0171 -0.1262) |
| OKLCH | oklch(35.47% 0.127 277.7) |
| XYZ | xyz(5.8257, 4.0922, 19.5477) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.38
Midnight Blue
#191970
ΔE00 6.19
Blueberry
#464196
ΔE00 6.47
Sapphire (survey)
#2138AB
ΔE00 7.49
Royal
#0C1793
ΔE00 7.81
Marine
#042E60
ΔE00 8.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2F7C #7C7C2F
analogous
#2F557C #2F2F7C #552F7C
triadic
#2F2F7C #7C2F2F #2F7C2F
tetradic
#2F2F7C #7C2F55 #7C7C2F #2F7C55
square
#2F2F7C #7C2F55 #7C7C2F #2F7C55
split-complementary
#2F2F7C #7C552F #557C2F
monochromatic
#0D0D23 #1E1E50 #2F2F7C #4040A8 #6262C3
Accessibility & contrast
On white
11.55
#2F2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2F2F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2F7C
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2F7C | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f2f7c; /* rgb */ color: rgb(47, 47, 124); /* oklch */ color: oklch(35.5% 0.127 277.7);
Tailwind
colors: {
custom: {
50: '#7067a3',
500: '#2f2f7c',
950: '#000000',
},
}SCSS
$custom: #2f2f7c; $custom-light: #7067a3; $custom-dark: #000000;
JSON
{
"hex": "#2f2f7c",
"rgb": {
"r": 47,
"g": 47,
"b": 124
},
"hsl": {
"h": 240,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.35468,
"c": 0.12735,
"h": 277.7
},
"luminance": 0.04093
}Semantic roles & 50–950 ramp
primary
#2F2F7C
secondary
#AAAA5C
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F