#2F45A8#2F45A8
#2F45A8 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.161 H 269.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2F45A8 |
|---|---|
| RGB | rgb(47, 69, 168) |
| HSL | hsl(229, 56%, 42%) |
| HSV | hsv(229, 72%, 66%) |
| CMYK | cmyk(72%, 58.9%, 0%, 34.1%) |
| CIE-LAB | lab(33.32, 26.29, -55.74) |
| CIE-LCH | lch(33.32, 61.63, 295.25°) |
| OKLab | oklab(43.53% -0.0026 -0.1607) |
| OKLCH | oklch(43.53% 0.161 269.1) |
| XYZ | xyz(10.3659, 7.6867, 37.9756) |
| Luminance | 0.0769 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.55
Sapphire (survey)
#2138AB
ΔE00 3.98
Blue Blue
#2242C7
ΔE00 4.30
Blueberry
#464196
ΔE00 4.97
Cobalt (survey)
#1E488F
ΔE00 5.30
Ocean Blue
#4F42B5
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F45A8 #A8922F
analogous
#2F82A8 #2F45A8 #562FA8
triadic
#2F45A8 #A82F45 #45A82F
tetradic
#2F45A8 #A82F82 #A8922F #2FA856
square
#2F45A8 #A82F82 #A8922F #2FA856
split-complementary
#2F45A8 #A8562F #82A82F
monochromatic
#141E48 #223178 #2F45A8 #4860CC #788AD9
Accessibility & contrast
On white
8.28
#2F45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#2F45A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F45A8
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F45A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F45A8 | 1.00 | 8.28 | 2.54 | 8.28 |
| #FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2f45a8; /* rgb */ color: rgb(47, 69, 168); /* oklch */ color: oklch(43.5% 0.161 269.1);
Tailwind
colors: {
custom: {
50: '#7878c3',
500: '#2f45a8',
950: '#000000',
},
}SCSS
$custom: #2f45a8; $custom-light: #7878c3; $custom-dark: #000000;
JSON
{
"hex": "#2f45a8",
"rgb": {
"r": 47,
"g": 69,
"b": 168
},
"hsl": {
"h": 229.091,
"s": 56.279,
"l": 42.157
},
"oklch": {
"l": 0.43525,
"c": 0.16077,
"h": 269.1
},
"luminance": 0.07688
}Semantic roles & 50–950 ramp
primary
#2F45A8
secondary
#C1B371
accent
#C448E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81