#2F4797#2F4797
#2F4797 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.134 H 267.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4797 |
|---|---|
| RGB | rgb(47, 71, 151) |
| HSL | hsl(226, 53%, 39%) |
| HSV | hsv(226, 69%, 59%) |
| CMYK | cmyk(68.9%, 53%, 0%, 40.8%) |
| CIE-LAB | lab(32.58, 18.59, -46.70) |
| CIE-LCH | lch(32.58, 50.26, 291.71°) |
| OKLab | oklab(42.56% -0.0052 -0.1341) |
| OKLCH | oklch(42.56% 0.134 267.8) |
| XYZ | xyz(9.0095, 7.3443, 30.2149) |
| Luminance | 0.0735 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.09
Cobalt
#0047AB
ΔE00 3.82
Blueberry
#464196
ΔE00 5.28
Darkish Blue
#014182
ΔE00 5.67
Dusk Blue
#26538D
ΔE00 5.83
Sapphire (survey)
#2138AB
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4797 #977F2F
analogous
#2F7B97 #2F4797 #4B2F97
triadic
#2F4797 #972F47 #47972F
tetradic
#2F4797 #972F7B #977F2F #2F974B
square
#2F4797 #972F7B #977F2F #2F974B
split-complementary
#2F4797 #974B2F #7B972F
monochromatic
#121B3A #203168 #2F4797 #405EC3 #6E85D2
Accessibility & contrast
On white
8.51
#2F4797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2F4797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4797
8.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4797 | 1.00 | 8.51 | 2.47 | 8.51 |
| #FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#15529A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2f4797; /* rgb */ color: rgb(47, 71, 151); /* oklch */ color: oklch(42.6% 0.134 267.8);
Tailwind
colors: {
custom: {
50: '#7479b6',
500: '#2f4797',
950: '#000000',
},
}SCSS
$custom: #2f4797; $custom-light: #7479b6; $custom-dark: #000000;
JSON
{
"hex": "#2f4797",
"rgb": {
"r": 47,
"g": 71,
"b": 151
},
"hsl": {
"h": 226.154,
"s": 52.525,
"l": 38.824
},
"oklch": {
"l": 0.4256,
"c": 0.13422,
"h": 267.8
},
"luminance": 0.07345
}Semantic roles & 50–950 ramp
primary
#2F4797
secondary
#B9A768
accent
#BB4CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80