#2F397C#2F397C
#2F397C is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.113 H 273.3°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2F397C |
|---|---|
| RGB | rgb(47, 57, 124) |
| HSL | hsl(232, 45%, 34%) |
| HSV | hsv(232, 62%, 49%) |
| CMYK | cmyk(62.1%, 54%, 0%, 51.4%) |
| CIE-LAB | lab(26.69, 18.03, -39.50) |
| CIE-LCH | lch(26.69, 43.42, 294.54°) |
| OKLab | oklab(37.49% 0.0065 -0.1131) |
| OKLCH | oklch(37.49% 0.113 273.3) |
| XYZ | xyz(6.2723, 4.9853, 19.6966) |
| Luminance | 0.0499 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.17
Blueberry
#464196
ΔE00 5.62
Cobalt (survey)
#1E488F
ΔE00 6.92
Marine
#042E60
ΔE00 6.99
Darkish Blue
#014182
ΔE00 7.05
Marine Blue
#01386A
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F397C #7C722F
analogous
#2F5F7C #2F397C #4B2F7C
triadic
#2F397C #7C2F39 #397C2F
tetradic
#2F397C #7C2F5F #7C722F #2F7C4B
square
#2F397C #7C2F5F #7C722F #2F7C4B
split-complementary
#2F397C #7C4B2F #5F7C2F
monochromatic
#0D1023 #1E2550 #2F397C #404DA8 #626FC3
Accessibility & contrast
On white
10.51
#2F397C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#2F397C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F397C
10.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F397C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F397C | 1.00 | 10.51 | 2.00 | 10.51 |
| #FFFFFF | 10.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#12437E
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2f397c; /* rgb */ color: rgb(47, 57, 124); /* oklch */ color: oklch(37.5% 0.113 273.3);
Tailwind
colors: {
custom: {
50: '#6f6fa2',
500: '#2f397c',
950: '#000000',
},
}SCSS
$custom: #2f397c; $custom-light: #6f6fa2; $custom-dark: #000000;
JSON
{
"hex": "#2f397c",
"rgb": {
"r": 47,
"g": 57,
"b": 124
},
"hsl": {
"h": 232.208,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.37495,
"c": 0.11334,
"h": 273.3
},
"luminance": 0.04986
}Semantic roles & 50–950 ramp
primary
#2F397C
secondary
#AAA05C
accent
#C453D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F