#2F309F#2F309F
#2F309F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.174 H 274.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2F309F |
|---|---|
| RGB | rgb(47, 48, 159) |
| HSL | hsl(239, 54%, 40%) |
| HSV | hsv(239, 70%, 62%) |
| CMYK | cmyk(70.4%, 69.8%, 0%, 37.6%) |
| CIE-LAB | lab(27.35, 36.59, -60.07) |
| CIE-LCH | lch(27.35, 70.34, 301.35°) |
| OKLab | oklab(38.9% 0.0132 -0.1736) |
| OKLCH | oklch(38.9% 0.174 274.3) |
| XYZ | xyz(8.4852, 5.2206, 33.3547) |
| Luminance | 0.0522 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.19
Blueberry
#464196
ΔE00 5.78
Indigo Blue
#3A18B1
ΔE00 5.82
Royal
#0C1793
ΔE00 6.32
Darkslateblue
#483D8B
ΔE00 6.33
Ocean Blue
#4F42B5
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F309F #9F9E2F
analogous
#2F689F #2F309F #662F9F
triadic
#2F309F #9F2F30 #309F2F
tetradic
#2F309F #9F2F68 #9F9E2F #2F9F66
square
#2F309F #9F2F68 #9F9E2F #2F9F66
split-complementary
#2F309F #9F662F #689F2F
monochromatic
#131341 #212270 #2F309F #4445C8 #7374D6
Accessibility & contrast
On white
10.27
#2F309F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#2F309F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F309F
10.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F309F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F309F | 1.00 | 10.27 | 2.04 | 10.27 |
| #FFFFFF | 10.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f309f; /* rgb */ color: rgb(47, 48, 159); /* oklch */ color: oklch(38.9% 0.174 274.3);
Tailwind
colors: {
custom: {
50: '#7869bc',
500: '#2f309f',
950: '#000000',
},
}SCSS
$custom: #2f309f; $custom-light: #7869bc; $custom-dark: #000000;
JSON
{
"hex": "#2f309f",
"rgb": {
"r": 47,
"g": 48,
"b": 159
},
"hsl": {
"h": 239.464,
"s": 54.369,
"l": 40.392
},
"oklch": {
"l": 0.389,
"c": 0.1741,
"h": 274.3
},
"luminance": 0.05221
}Semantic roles & 50–950 ramp
primary
#2F309F
secondary
#BDBD6D
accent
#DC4ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81