#2F3398#2F3398
#2F3398 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.161 H 274.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3398 |
|---|---|
| RGB | rgb(47, 51, 152) |
| HSL | hsl(238, 53%, 39%) |
| HSV | hsv(238, 69%, 60%) |
| CMYK | cmyk(69.1%, 66.4%, 0%, 40.4%) |
| CIE-LAB | lab(27.40, 32.24, -55.72) |
| CIE-LCH | lch(27.40, 64.38, 300.05°) |
| OKLab | oklab(38.74% 0.0118 -0.1609) |
| OKLCH | oklch(38.74% 0.161 274.2) |
| XYZ | xyz(8.0217, 5.2383, 30.2880) |
| Luminance | 0.0524 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.25
Blueberry
#464196
ΔE00 4.91
Darkslateblue
#483D8B
ΔE00 5.41
Ocean Blue
#4F42B5
ΔE00 6.89
Royal
#0C1793
ΔE00 7.03
Indigo Blue
#3A18B1
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3398 #98942F
analogous
#2F6898 #2F3398 #602F98
triadic
#2F3398 #982F33 #33982F
tetradic
#2F3398 #982F68 #98942F #2F9860
square
#2F3398 #982F68 #98942F #2F9860
split-complementary
#2F3398 #98602F #68982F
monochromatic
#12143B #212369 #2F3398 #4045C4 #6F73D2
Accessibility & contrast
On white
10.25
#2F3398 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#2F3398 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3398
10.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3398 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3398 | 1.00 | 10.25 | 2.05 | 10.25 |
| #FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2f3398; /* rgb */ color: rgb(47, 51, 152); /* oklch */ color: oklch(38.7% 0.161 274.2);
Tailwind
colors: {
custom: {
50: '#766bb7',
500: '#2f3398',
950: '#000000',
},
}SCSS
$custom: #2f3398; $custom-light: #766bb7; $custom-dark: #000000;
JSON
{
"hex": "#2f3398",
"rgb": {
"r": 47,
"g": 51,
"b": 152
},
"hsl": {
"h": 237.714,
"s": 52.764,
"l": 39.02
},
"oklch": {
"l": 0.38736,
"c": 0.16129,
"h": 274.2
},
"luminance": 0.05239
}Semantic roles & 50–950 ramp
primary
#2F3398
secondary
#BAB769
accent
#D74CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80