#2F4AAA#2F4AAA
#2F4AAA is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.7% C 0.157 H 267.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4AAA |
|---|---|
| RGB | rgb(47, 74, 170) |
| HSL | hsl(227, 57%, 43%) |
| HSV | hsv(227, 72%, 67%) |
| CMYK | cmyk(72.4%, 56.5%, 0%, 33.3%) |
| CIE-LAB | lab(34.81, 23.73, -54.52) |
| CIE-LCH | lch(34.81, 59.46, 293.52°) |
| OKLab | oklab(44.69% -0.0065 -0.1571) |
| OKLCH | oklch(44.69% 0.157 267.6) |
| XYZ | xyz(10.8743, 8.4031, 39.0713) |
| Luminance | 0.0840 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.03
Sapphire
#0F52BA
ΔE00 4.25
Blue Blue
#2242C7
ΔE00 4.76
Cobalt (survey)
#1E488F
ΔE00 4.81
Sapphire (survey)
#2138AB
ΔE00 5.54
Blueberry
#464196
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4AAA #AA8F2F
analogous
#2F88AA #2F4AAA #512FAA
triadic
#2F4AAA #AA2F4A #4AAA2F
tetradic
#2F4AAA #AA2F88 #AA8F2F #2FAA51
square
#2F4AAA #AA2F88 #AA8F2F #2FAA51
split-complementary
#2F4AAA #AA512F #88AA2F
monochromatic
#14204A #22357A #2F4AAA #4966CD #798FDA
Accessibility & contrast
On white
7.83
#2F4AAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#2F4AAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4AAA
7.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4AAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4AAA | 1.00 | 7.83 | 2.68 | 7.83 |
| #FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #2f4aaa; /* rgb */ color: rgb(47, 74, 170); /* oklch */ color: oklch(44.7% 0.157 267.6);
Tailwind
colors: {
custom: {
50: '#787cc4',
500: '#2f4aaa',
950: '#000000',
},
}SCSS
$custom: #2f4aaa; $custom-light: #787cc4; $custom-dark: #000000;
JSON
{
"hex": "#2f4aaa",
"rgb": {
"r": 47,
"g": 74,
"b": 170
},
"hsl": {
"h": 226.829,
"s": 56.682,
"l": 42.549
},
"oklch": {
"l": 0.44687,
"c": 0.15722,
"h": 267.6
},
"luminance": 0.08404
}Semantic roles & 50–950 ramp
primary
#2F4AAA
secondary
#C2B172
accent
#BF48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82