#2F45AB#2F45AB
#2F45AB is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.165 H 269.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2F45AB |
|---|---|
| RGB | rgb(47, 69, 171) |
| HSL | hsl(229, 57%, 43%) |
| HSV | hsv(229, 73%, 67%) |
| CMYK | cmyk(72.5%, 59.6%, 0%, 32.9%) |
| CIE-LAB | lab(33.56, 27.41, -57.15) |
| CIE-LCH | lch(33.56, 63.38, 295.62°) |
| OKLab | oklab(43.78% -0.0025 -0.1649) |
| OKLCH | oklch(43.78% 0.165 269.1) |
| XYZ | xyz(10.6486, 7.7998, 39.4645) |
| Luminance | 0.0780 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.65
Blue Blue
#2242C7
ΔE00 3.87
Sapphire (survey)
#2138AB
ΔE00 3.89
Blueberry
#464196
ΔE00 5.14
Ocean Blue
#4F42B5
ΔE00 5.40
Sapphire
#0F52BA
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F45AB #AB952F
analogous
#2F83AB #2F45AB #572FAB
triadic
#2F45AB #AB2F45 #45AB2F
tetradic
#2F45AB #AB2F83 #AB952F #2FAB57
square
#2F45AB #AB2F83 #AB952F #2FAB57
split-complementary
#2F45AB #AB572F #83AB2F
monochromatic
#151E4B #22327B #2F45AB #4A61CD #7A8BDA
Accessibility & contrast
On white
8.20
#2F45AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.56
#2F45AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F45AB
8.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F45AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F45AB | 1.00 | 8.20 | 2.56 | 8.20 |
| #FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2f45ab; /* rgb */ color: rgb(47, 69, 171); /* oklch */ color: oklch(43.8% 0.165 269.1);
Tailwind
colors: {
custom: {
50: '#7978c5',
500: '#2f45ab',
950: '#000000',
},
}SCSS
$custom: #2f45ab; $custom-light: #7978c5; $custom-dark: #000000;
JSON
{
"hex": "#2f45ab",
"rgb": {
"r": 47,
"g": 69,
"b": 171
},
"hsl": {
"h": 229.355,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.43779,
"c": 0.16489,
"h": 269.1
},
"luminance": 0.07801
}Semantic roles & 50–950 ramp
primary
#2F45AB
secondary
#C3B573
accent
#C548E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82