#2F4786#2F4786
#2F4786 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.109 H 266.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4786 |
|---|---|
| RGB | rgb(47, 71, 134) |
| HSL | hsl(223, 48%, 35%) |
| HSV | hsv(223, 65%, 53%) |
| CMYK | cmyk(64.9%, 47%, 0%, 47.5%) |
| CIE-LAB | lab(31.42, 12.21, -38.14) |
| CIE-LCH | lch(31.42, 40.05, 287.74°) |
| OKLab | oklab(41.31% -0.0075 -0.109) |
| OKLCH | oklch(41.31% 0.109 266.1) |
| XYZ | xyz(7.7271, 6.8314, 23.4610) |
| Luminance | 0.0683 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.72
Darkish Blue
#014182
ΔE00 4.58
Twilight Blue
#0A437A
ΔE00 5.03
Dusk Blue
#26538D
ΔE00 5.28
Cobalt
#0047AB
ΔE00 5.64
Twilight
#4E518B
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4786 #866E2F
analogous
#2F7286 #2F4786 #422F86
triadic
#2F4786 #862F47 #47862F
tetradic
#2F4786 #862F72 #866E2F #2F8642
square
#2F4786 #862F72 #866E2F #2F8642
split-complementary
#2F4786 #86422F #72862F
monochromatic
#0F172B #1F2F59 #2F4786 #3F5FB3 #6681C9
Accessibility & contrast
On white
8.87
#2F4786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#2F4786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4786
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4786 | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#294E88
Deuteranopia (green-blind)
#1A4685
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2f4786; /* rgb */ color: rgb(47, 71, 134); /* oklch */ color: oklch(41.3% 0.109 266.1);
Tailwind
colors: {
custom: {
50: '#7179aa',
500: '#2f4786',
950: '#000000',
},
}SCSS
$custom: #2f4786; $custom-light: #7179aa; $custom-dark: #000000;
JSON
{
"hex": "#2f4786",
"rgb": {
"r": 47,
"g": 71,
"b": 134
},
"hsl": {
"h": 223.448,
"s": 48.066,
"l": 35.49
},
"oklch": {
"l": 0.41306,
"c": 0.10922,
"h": 266.1
},
"luminance": 0.06832
}Semantic roles & 50–950 ramp
primary
#2F4786
secondary
#B09A60
accent
#B250D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F