#2F398B#2F398B
#2F398B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.135 H 273.1°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2F398B |
|---|---|
| RGB | rgb(47, 57, 139) |
| HSL | hsl(233, 49%, 36%) |
| HSV | hsv(233, 66%, 55%) |
| CMYK | cmyk(66.2%, 59%, 0%, 45.5%) |
| CIE-LAB | lab(27.83, 23.56, -47.03) |
| CIE-LCH | lch(27.83, 52.60, 296.61°) |
| OKLab | oklab(38.71% 0.0072 -0.1353) |
| OKLCH | oklch(38.71% 0.135 273.1) |
| XYZ | xyz(7.2941, 5.3940, 25.0779) |
| Luminance | 0.0539 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.20
Darkslateblue
#483D8B
ΔE00 4.53
Sapphire (survey)
#2138AB
ΔE00 4.91
Cobalt (survey)
#1E488F
ΔE00 6.69
Cobalt
#0047AB
ΔE00 7.30
Darkish Blue
#014182
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F398B #8B812F
analogous
#2F678B #2F398B #532F8B
triadic
#2F398B #8B2F39 #398B2F
tetradic
#2F398B #8B2F67 #8B812F #2F8B53
square
#2F398B #8B2F67 #8B812F #2F8B53
split-complementary
#2F398B #8B532F #678B2F
monochromatic
#101330 #20265D #2F398B #3E4CB9 #6873CC
Accessibility & contrast
On white
10.10
#2F398B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#2F398B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F398B
10.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F398B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F398B | 1.00 | 10.10 | 2.08 | 10.10 |
| #FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2f398b; /* rgb */ color: rgb(47, 57, 139); /* oklch */ color: oklch(38.7% 0.135 273.1);
Tailwind
colors: {
custom: {
50: '#736fae',
500: '#2f398b',
950: '#000000',
},
}SCSS
$custom: #2f398b; $custom-light: #736fae; $custom-dark: #000000;
JSON
{
"hex": "#2f398b",
"rgb": {
"r": 47,
"g": 57,
"b": 139
},
"hsl": {
"h": 233.478,
"s": 49.462,
"l": 36.471
},
"oklch": {
"l": 0.38707,
"c": 0.13547,
"h": 273.1
},
"luminance": 0.05395
}Semantic roles & 50–950 ramp
primary
#2F398B
secondary
#B3AA63
accent
#CA4FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F