#2F45B4#2F45B4
#2F45B4 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.6% C 0.177 H 269.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2F45B4 |
|---|---|
| RGB | rgb(47, 69, 180) |
| HSL | hsl(230, 59%, 45%) |
| HSV | hsv(230, 74%, 71%) |
| CMYK | cmyk(73.9%, 61.7%, 0%, 29.4%) |
| CIE-LAB | lab(34.30, 30.73, -61.29) |
| CIE-LCH | lch(34.30, 68.56, 296.63°) |
| OKLab | oklab(44.56% -0.0025 -0.177) |
| OKLCH | oklch(44.56% 0.177 269.2) |
| XYZ | xyz(11.5358, 8.1547, 44.1372) |
| Luminance | 0.0816 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.65
Sapphire (survey)
#2138AB
ΔE00 3.94
Cobalt
#0047AB
ΔE00 4.18
Ocean Blue
#4F42B5
ΔE00 4.82
Blue (survey)
#0343DF
ΔE00 5.31
Sapphire
#0F52BA
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F45B4 #B49E2F
analogous
#2F88B4 #2F45B4 #5C2FB4
triadic
#2F45B4 #B42F45 #45B42F
tetradic
#2F45B4 #B42F88 #B49E2F #2FB45C
square
#2F45B4 #B42F88 #B49E2F #2FB45C
split-complementary
#2F45B4 #B45C2F #88B42F
monochromatic
#162053 #223283 #2F45B4 #4F65D1 #808FDE
Accessibility & contrast
On white
7.98
#2F45B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#2F45B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F45B4
7.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F45B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F45B4 | 1.00 | 7.98 | 2.63 | 7.98 |
| #FFFFFF | 7.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #2f45b4; /* rgb */ color: rgb(47, 69, 180); /* oklch */ color: oklch(44.6% 0.177 269.2);
Tailwind
colors: {
custom: {
50: '#7b78cb',
500: '#2f45b4',
950: '#000000',
},
}SCSS
$custom: #2f45b4; $custom-light: #7b78cb; $custom-dark: #000000;
JSON
{
"hex": "#2f45b4",
"rgb": {
"r": 47,
"g": 69,
"b": 180
},
"hsl": {
"h": 230.075,
"s": 58.59,
"l": 44.51
},
"oklch": {
"l": 0.4456,
"c": 0.17705,
"h": 269.2
},
"luminance": 0.08156
}Semantic roles & 50–950 ramp
primary
#2F45B4
secondary
#C7BA78
accent
#C846E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82