#2F387C#2F387C
#2F387C is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.115 H 273.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2F387C |
|---|---|
| RGB | rgb(47, 56, 124) |
| HSL | hsl(233, 45%, 34%) |
| HSV | hsv(233, 62%, 49%) |
| CMYK | cmyk(62.1%, 54.8%, 0%, 51.4%) |
| CIE-LAB | lab(26.41, 18.72, -39.96) |
| CIE-LCH | lch(26.41, 44.12, 295.10°) |
| OKLab | oklab(37.28% 0.0076 -0.1145) |
| OKLCH | oklch(37.28% 0.115 273.8) |
| XYZ | xyz(6.2234, 4.8874, 19.6803) |
| Luminance | 0.0489 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.07
Blueberry
#464196
ΔE00 5.62
Marine
#042E60
ΔE00 7.04
Cobalt (survey)
#1E488F
ΔE00 7.22
Darkish Blue
#014182
ΔE00 7.32
Marine Blue
#01386A
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F387C #7C732F
analogous
#2F5E7C #2F387C #4C2F7C
triadic
#2F387C #7C2F38 #387C2F
tetradic
#2F387C #7C2F5E #7C732F #2F7C4C
square
#2F387C #7C2F5E #7C732F #2F7C4C
split-complementary
#2F387C #7C4C2F #5E7C2F
monochromatic
#0D1023 #1E2450 #2F387C #404CA8 #626DC3
Accessibility & contrast
On white
10.62
#2F387C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#2F387C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F387C
10.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F387C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F387C | 1.00 | 10.62 | 1.98 | 10.62 |
| #FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F427E
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f387c; /* rgb */ color: rgb(47, 56, 124); /* oklch */ color: oklch(37.3% 0.115 273.8);
Tailwind
colors: {
custom: {
50: '#706ea2',
500: '#2f387c',
950: '#000000',
},
}SCSS
$custom: #2f387c; $custom-light: #706ea2; $custom-dark: #000000;
JSON
{
"hex": "#2f387c",
"rgb": {
"r": 47,
"g": 56,
"b": 124
},
"hsl": {
"h": 232.987,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.37284,
"c": 0.11474,
"h": 273.8
},
"luminance": 0.04888
}Semantic roles & 50–950 ramp
primary
#2F387C
secondary
#AAA15C
accent
#C653D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F