#2F4781#2F4781
#2F4781 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.102 H 265.3°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4781 |
|---|---|
| RGB | rgb(47, 71, 129) |
| HSL | hsl(222, 47%, 35%) |
| HSV | hsv(222, 64%, 51%) |
| CMYK | cmyk(63.6%, 45%, 0%, 49.4%) |
| CIE-LAB | lab(31.10, 10.34, -35.55) |
| CIE-LCH | lch(31.10, 37.03, 286.22°) |
| OKLab | oklab(40.96% -0.0084 -0.1013) |
| OKLCH | oklch(40.96% 0.102 265.3) |
| XYZ | xyz(7.3866, 6.6952, 21.6677) |
| Luminance | 0.0670 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.05
Darkish Blue
#014182
ΔE00 4.50
Twilight Blue
#0A437A
ΔE00 4.75
Dusk Blue
#26538D
ΔE00 5.30
Prussian Blue
#004577
ΔE00 6.11
Cobalt
#0047AB
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4781 #81692F
analogous
#2F7081 #2F4781 #402F81
triadic
#2F4781 #812F47 #47812F
tetradic
#2F4781 #812F70 #81692F #2F8140
square
#2F4781 #812F70 #81692F #2F8140
split-complementary
#2F4781 #81402F #70812F
monochromatic
#0E1627 #1F2E54 #2F4781 #3F60AE #6481C6
Accessibility & contrast
On white
8.98
#2F4781 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#2F4781 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4781
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4781 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4781 | 1.00 | 8.98 | 2.34 | 8.98 |
| #FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C4D83
Deuteranopia (green-blind)
#204680
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2f4781; /* rgb */ color: rgb(47, 71, 129); /* oklch */ color: oklch(41.0% 0.102 265.3);
Tailwind
colors: {
custom: {
50: '#7079a6',
500: '#2f4781',
950: '#000000',
},
}SCSS
$custom: #2f4781; $custom-light: #7079a6; $custom-dark: #000000;
JSON
{
"hex": "#2f4781",
"rgb": {
"r": 47,
"g": 71,
"b": 129
},
"hsl": {
"h": 222.439,
"s": 46.591,
"l": 34.51
},
"oklch": {
"l": 0.4096,
"c": 0.1017,
"h": 265.3
},
"luminance": 0.06696
}Semantic roles & 50–950 ramp
primary
#2F4781
secondary
#AD965E
accent
#AF52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F