#2F308F#2F308F
#2F308F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.153 H 275.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2F308F |
|---|---|
| RGB | rgb(47, 48, 143) |
| HSL | hsl(239, 51%, 37%) |
| HSV | hsv(239, 67%, 56%) |
| CMYK | cmyk(67.1%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(25.86, 30.97, -52.71) |
| CIE-LCH | lch(25.86, 61.13, 300.44°) |
| OKLab | oklab(37.36% 0.015 -0.152) |
| OKLCH | oklch(37.36% 0.153 275.6) |
| XYZ | xyz(7.1855, 4.7008, 26.5100) |
| Luminance | 0.0470 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.70
Darkslateblue
#483D8B
ΔE00 5.31
Blueberry
#464196
ΔE00 5.45
Royal
#0C1793
ΔE00 6.45
Midnight Blue
#191970
ΔE00 7.24
Indigo Blue
#3A18B1
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F308F #8F8E2F
analogous
#2F608F #2F308F #5E2F8F
triadic
#2F308F #8F2F30 #308F2F
tetradic
#2F308F #8F2F60 #8F8E2F #2F8F5E
square
#2F308F #8F2F60 #8F8E2F #2F8F5E
split-complementary
#2F308F #8F5E2F #608F2F
monochromatic
#111133 #202161 #2F308F #3E3FBD #6A6BCE
Accessibility & contrast
On white
10.82
#2F308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2F308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F308F
10.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F308F | 1.00 | 10.82 | 1.94 | 10.82 |
| #FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f308f; /* rgb */ color: rgb(47, 48, 143); /* oklch */ color: oklch(37.4% 0.153 275.6);
Tailwind
colors: {
custom: {
50: '#7468b1',
500: '#2f308f',
950: '#000000',
},
}SCSS
$custom: #2f308f; $custom-light: #7468b1; $custom-dark: #000000;
JSON
{
"hex": "#2f308f",
"rgb": {
"r": 47,
"g": 48,
"b": 143
},
"hsl": {
"h": 239.375,
"s": 50.526,
"l": 37.255
},
"oklch": {
"l": 0.37364,
"c": 0.15277,
"h": 275.6
},
"luminance": 0.04701
}Semantic roles & 50–950 ramp
primary
#2F308F
secondary
#B5B465
accent
#D94EDA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80