#2F3798#2F3798
#2F3798 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.156 H 273.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3798 |
|---|---|
| RGB | rgb(47, 55, 152) |
| HSL | hsl(235, 53%, 39%) |
| HSV | hsv(235, 69%, 60%) |
| CMYK | cmyk(69.1%, 63.8%, 0%, 40.4%) |
| CIE-LAB | lab(28.39, 29.64, -54.11) |
| CIE-LCH | lch(28.39, 61.70, 298.71°) |
| OKLab | oklab(39.46% 0.0087 -0.1561) |
| OKLCH | oklch(39.46% 0.156 273.2) |
| XYZ | xyz(8.2041, 5.6030, 30.3488) |
| Luminance | 0.0560 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.91
Blueberry
#464196
ΔE00 4.21
Darkslateblue
#483D8B
ΔE00 5.07
Ocean Blue
#4F42B5
ΔE00 6.57
Blue Blue
#2242C7
ΔE00 6.99
Cobalt
#0047AB
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3798 #98902F
analogous
#2F6C98 #2F3798 #5C2F98
triadic
#2F3798 #982F37 #37982F
tetradic
#2F3798 #982F6C #98902F #2F985C
square
#2F3798 #982F6C #98902F #2F985C
split-complementary
#2F3798 #985C2F #6C982F
monochromatic
#12153B #212669 #2F3798 #404AC4 #6F77D2
Accessibility & contrast
On white
9.90
#2F3798 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#2F3798 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3798
9.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3798 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3798 | 1.00 | 9.90 | 2.12 | 9.90 |
| #FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #2f3798; /* rgb */ color: rgb(47, 55, 152); /* oklch */ color: oklch(39.5% 0.156 273.2);
Tailwind
colors: {
custom: {
50: '#766eb7',
500: '#2f3798',
950: '#000000',
},
}SCSS
$custom: #2f3798; $custom-light: #766eb7; $custom-dark: #000000;
JSON
{
"hex": "#2f3798",
"rgb": {
"r": 47,
"g": 55,
"b": 152
},
"hsl": {
"h": 235.429,
"s": 52.764,
"l": 39.02
},
"oklch": {
"l": 0.39457,
"c": 0.15636,
"h": 273.2
},
"luminance": 0.05604
}Semantic roles & 50–950 ramp
primary
#2F3798
secondary
#BAB469
accent
#D14CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80