#2F4AAB#2F4AAB
#2F4AAB is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.8% C 0.159 H 267.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4AAB |
|---|---|
| RGB | rgb(47, 74, 171) |
| HSL | hsl(227, 57%, 43%) |
| HSV | hsv(227, 73%, 67%) |
| CMYK | cmyk(72.5%, 56.7%, 0%, 32.9%) |
| CIE-LAB | lab(34.88, 24.10, -54.99) |
| CIE-LCH | lch(34.88, 60.04, 293.67°) |
| OKLab | oklab(44.77% -0.0064 -0.1585) |
| OKLCH | oklch(44.77% 0.159 267.7) |
| XYZ | xyz(10.9692, 8.4410, 39.5714) |
| Luminance | 0.0844 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.06
Sapphire
#0F52BA
ΔE00 4.22
Blue Blue
#2242C7
ΔE00 4.63
Cobalt (survey)
#1E488F
ΔE00 4.94
Sapphire (survey)
#2138AB
ΔE00 5.51
Blueberry
#464196
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4AAB #AB902F
analogous
#2F88AB #2F4AAB #522FAB
triadic
#2F4AAB #AB2F4A #4AAB2F
tetradic
#2F4AAB #AB2F88 #AB902F #2FAB52
square
#2F4AAB #AB2F88 #AB902F #2FAB52
split-complementary
#2F4AAB #AB522F #88AB2F
monochromatic
#15204B #22357B #2F4AAB #4A67CD #7A8FDA
Accessibility & contrast
On white
7.81
#2F4AAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#2F4AAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4AAB
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4AAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4AAB | 1.00 | 7.81 | 2.69 | 7.81 |
| #FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #2f4aab; /* rgb */ color: rgb(47, 74, 171); /* oklch */ color: oklch(44.8% 0.159 267.7);
Tailwind
colors: {
custom: {
50: '#787cc5',
500: '#2f4aab',
950: '#000000',
},
}SCSS
$custom: #2f4aab; $custom-light: #787cc5; $custom-dark: #000000;
JSON
{
"hex": "#2f4aab",
"rgb": {
"r": 47,
"g": 74,
"b": 171
},
"hsl": {
"h": 226.935,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.44768,
"c": 0.15861,
"h": 267.7
},
"luminance": 0.08442
}Semantic roles & 50–950 ramp
primary
#2F4AAB
secondary
#C3B173
accent
#BF48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82