#2F308E#2F308E
#2F308E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.151 H 275.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2F308E |
|---|---|
| RGB | rgb(47, 48, 142) |
| HSL | hsl(239, 50%, 37%) |
| HSV | hsv(239, 67%, 56%) |
| CMYK | cmyk(66.9%, 66.2%, 0%, 44.3%) |
| CIE-LAB | lab(25.77, 30.61, -52.23) |
| CIE-LCH | lch(25.77, 60.54, 300.37°) |
| OKLab | oklab(37.27% 0.0151 -0.1506) |
| OKLCH | oklch(37.27% 0.151 275.7) |
| XYZ | xyz(7.1101, 4.6706, 26.1128) |
| Luminance | 0.0467 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.82
Darkslateblue
#483D8B
ΔE00 5.27
Blueberry
#464196
ΔE00 5.46
Royal
#0C1793
ΔE00 6.49
Midnight Blue
#191970
ΔE00 7.16
Indigo Blue
#3A18B1
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F308E #8E8D2F
analogous
#2F608E #2F308E #5D2F8E
triadic
#2F308E #8E2F30 #308E2F
tetradic
#2F308E #8E2F60 #8E8D2F #2F8E5D
square
#2F308E #8E2F60 #8E8D2F #2F8E5D
split-complementary
#2F308E #8E5D2F #608E2F
monochromatic
#111132 #202060 #2F308E #3E40BC #6A6BCE
Accessibility & contrast
On white
10.86
#2F308E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2F308E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F308E
10.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F308E | 1.00 | 10.86 | 1.93 | 10.86 |
| #FFFFFF | 10.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f308e; /* rgb */ color: rgb(47, 48, 142); /* oklch */ color: oklch(37.3% 0.151 275.7);
Tailwind
colors: {
custom: {
50: '#7468b0',
500: '#2f308e',
950: '#000000',
},
}SCSS
$custom: #2f308e; $custom-light: #7468b0; $custom-dark: #000000;
JSON
{
"hex": "#2f308e",
"rgb": {
"r": 47,
"g": 48,
"b": 142
},
"hsl": {
"h": 239.368,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.37271,
"c": 0.1514,
"h": 275.7
},
"luminance": 0.04671
}Semantic roles & 50–950 ramp
primary
#2F308E
secondary
#B5B464
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80