#2F3A98#2F3A98
#2F3A98 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.153 H 272.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3A98 |
|---|---|
| RGB | rgb(47, 58, 152) |
| HSL | hsl(234, 53%, 39%) |
| HSV | hsv(234, 69%, 60%) |
| CMYK | cmyk(69.1%, 61.8%, 0%, 40.4%) |
| CIE-LAB | lab(29.15, 27.67, -52.87) |
| CIE-LCH | lch(29.15, 59.67, 297.62°) |
| OKLab | oklab(40.02% 0.0063 -0.1524) |
| OKLCH | oklch(40.02% 0.153 272.4) |
| XYZ | xyz(8.3509, 5.8967, 30.3978) |
| Luminance | 0.0590 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.98
Blueberry
#464196
ΔE00 3.87
Darkslateblue
#483D8B
ΔE00 5.01
Cobalt
#0047AB
ΔE00 6.33
Ocean Blue
#4F42B5
ΔE00 6.48
Blue Blue
#2242C7
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3A98 #988D2F
analogous
#2F6F98 #2F3A98 #592F98
triadic
#2F3A98 #982F3A #3A982F
tetradic
#2F3A98 #982F6F #988D2F #2F9859
square
#2F3A98 #982F6F #988D2F #2F9859
split-complementary
#2F3A98 #98592F #6F982F
monochromatic
#12163B #212869 #2F3A98 #404EC4 #6F79D2
Accessibility & contrast
On white
9.64
#2F3A98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#2F3A98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3A98
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3A98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3A98 | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2f3a98; /* rgb */ color: rgb(47, 58, 152); /* oklch */ color: oklch(40.0% 0.153 272.4);
Tailwind
colors: {
custom: {
50: '#7570b7',
500: '#2f3a98',
950: '#000000',
},
}SCSS
$custom: #2f3a98; $custom-light: #7570b7; $custom-dark: #000000;
JSON
{
"hex": "#2f3a98",
"rgb": {
"r": 47,
"g": 58,
"b": 152
},
"hsl": {
"h": 233.714,
"s": 52.764,
"l": 39.02
},
"oklch": {
"l": 0.40019,
"c": 0.15257,
"h": 272.4
},
"luminance": 0.05897
}Semantic roles & 50–950 ramp
primary
#2F3A98
secondary
#BAB169
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80