#2F3797#2F3797
#2F3797 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.155 H 273.2°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3797 |
|---|---|
| RGB | rgb(47, 55, 151) |
| HSL | hsl(235, 53%, 39%) |
| HSV | hsv(235, 69%, 59%) |
| CMYK | cmyk(68.9%, 63.6%, 0%, 40.8%) |
| CIE-LAB | lab(28.30, 29.28, -53.64) |
| CIE-LCH | lch(28.30, 61.11, 298.63°) |
| OKLab | oklab(39.37% 0.0088 -0.1547) |
| OKLCH | oklch(39.37% 0.155 273.2) |
| XYZ | xyz(8.1225, 5.5703, 29.9193) |
| Luminance | 0.0557 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.05
Blueberry
#464196
ΔE00 4.19
Darkslateblue
#483D8B
ΔE00 5.00
Ocean Blue
#4F42B5
ΔE00 6.68
Blue Blue
#2242C7
ΔE00 7.12
Cobalt
#0047AB
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3797 #978F2F
analogous
#2F6B97 #2F3797 #5B2F97
triadic
#2F3797 #972F37 #37972F
tetradic
#2F3797 #972F6B #978F2F #2F975B
square
#2F3797 #972F6B #978F2F #2F975B
split-complementary
#2F3797 #975B2F #6B972F
monochromatic
#12153A #202668 #2F3797 #404AC3 #6E76D2
Accessibility & contrast
On white
9.93
#2F3797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#2F3797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3797
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3797 | 1.00 | 9.93 | 2.11 | 9.93 |
| #FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #2f3797; /* rgb */ color: rgb(47, 55, 151); /* oklch */ color: oklch(39.4% 0.155 273.2);
Tailwind
colors: {
custom: {
50: '#756eb6',
500: '#2f3797',
950: '#000000',
},
}SCSS
$custom: #2f3797; $custom-light: #756eb6; $custom-dark: #000000;
JSON
{
"hex": "#2f3797",
"rgb": {
"r": 47,
"g": 55,
"b": 151
},
"hsl": {
"h": 235.385,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.39366,
"c": 0.15499,
"h": 273.2
},
"luminance": 0.05571
}Semantic roles & 50–950 ramp
primary
#2F3797
secondary
#B9B368
accent
#D14CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80