#2F45A5#2F45A5
#2F45A5 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.3% C 0.157 H 269.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2F45A5 |
|---|---|
| RGB | rgb(47, 69, 165) |
| HSL | hsl(229, 56%, 42%) |
| HSV | hsv(229, 72%, 65%) |
| CMYK | cmyk(71.5%, 58.2%, 0%, 35.3%) |
| CIE-LAB | lab(33.08, 25.18, -54.33) |
| CIE-LCH | lch(33.08, 59.88, 294.86°) |
| OKLab | oklab(43.27% -0.0026 -0.1566) |
| OKLCH | oklch(43.27% 0.157 269) |
| XYZ | xyz(10.0896, 7.5762, 36.5206) |
| Luminance | 0.0758 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.51
Sapphire (survey)
#2138AB
ΔE00 4.12
Blue Blue
#2242C7
ΔE00 4.73
Blueberry
#464196
ΔE00 4.84
Cobalt (survey)
#1E488F
ΔE00 4.96
Sapphire
#0F52BA
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F45A5 #A58F2F
analogous
#2F80A5 #2F45A5 #542FA5
triadic
#2F45A5 #A52F45 #45A52F
tetradic
#2F45A5 #A52F80 #A58F2F #2FA554
square
#2F45A5 #A52F80 #A58F2F #2FA554
split-complementary
#2F45A5 #A5542F #80A52F
monochromatic
#141D46 #213175 #2F45A5 #475FCB #7689D8
Accessibility & contrast
On white
8.35
#2F45A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.52
#2F45A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F45A5
8.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F45A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F45A5 | 1.00 | 8.35 | 2.52 | 8.35 |
| #FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2f45a5; /* rgb */ color: rgb(47, 69, 165); /* oklch */ color: oklch(43.3% 0.157 269.0);
Tailwind
colors: {
custom: {
50: '#7778c0',
500: '#2f45a5',
950: '#000000',
},
}SCSS
$custom: #2f45a5; $custom-light: #7778c0; $custom-dark: #000000;
JSON
{
"hex": "#2f45a5",
"rgb": {
"r": 47,
"g": 69,
"b": 165
},
"hsl": {
"h": 228.814,
"s": 55.66,
"l": 41.569
},
"oklch": {
"l": 0.43273,
"c": 0.15663,
"h": 269
},
"luminance": 0.07577
}Semantic roles & 50–950 ramp
primary
#2F45A5
secondary
#C0B170
accent
#C349DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81