#2F3399#2F3399
#2F3399 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.163 H 274.1°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3399 |
|---|---|
| RGB | rgb(47, 51, 153) |
| HSL | hsl(238, 53%, 39%) |
| HSV | hsv(238, 69%, 60%) |
| CMYK | cmyk(69.3%, 66.7%, 0%, 40%) |
| CIE-LAB | lab(27.49, 32.59, -56.19) |
| CIE-LCH | lch(27.49, 64.96, 300.12°) |
| OKLab | oklab(38.83% 0.0117 -0.1622) |
| OKLCH | oklch(38.83% 0.163 274.1) |
| XYZ | xyz(8.1040, 5.2712, 30.7212) |
| Luminance | 0.0527 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.14
Blueberry
#464196
ΔE00 4.94
Darkslateblue
#483D8B
ΔE00 5.48
Ocean Blue
#4F42B5
ΔE00 6.80
Royal
#0C1793
ΔE00 7.02
Indigo Blue
#3A18B1
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3399 #99952F
analogous
#2F6899 #2F3399 #602F99
triadic
#2F3399 #992F33 #33992F
tetradic
#2F3399 #992F68 #99952F #2F9960
square
#2F3399 #992F68 #99952F #2F9960
split-complementary
#2F3399 #99602F #68992F
monochromatic
#12143B #21236A #2F3399 #4146C5 #6F73D3
Accessibility & contrast
On white
10.22
#2F3399 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#2F3399 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3399
10.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3399 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3399 | 1.00 | 10.22 | 2.05 | 10.22 |
| #FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f3399; /* rgb */ color: rgb(47, 51, 153); /* oklch */ color: oklch(38.8% 0.163 274.1);
Tailwind
colors: {
custom: {
50: '#766bb8',
500: '#2f3399',
950: '#000000',
},
}SCSS
$custom: #2f3399; $custom-light: #766bb8; $custom-dark: #000000;
JSON
{
"hex": "#2f3399",
"rgb": {
"r": 47,
"g": 51,
"b": 153
},
"hsl": {
"h": 237.736,
"s": 53,
"l": 39.216
},
"oklch": {
"l": 0.3883,
"c": 0.16264,
"h": 274.1
},
"luminance": 0.05272
}Semantic roles & 50–950 ramp
primary
#2F3399
secondary
#BAB769
accent
#D74BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80