#2F45B2#2F45B2
#2F45B2 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.4% C 0.174 H 269.2°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2F45B2 |
|---|---|
| RGB | rgb(47, 69, 178) |
| HSL | hsl(230, 58%, 44%) |
| HSV | hsv(230, 74%, 70%) |
| CMYK | cmyk(73.6%, 61.2%, 0%, 30.2%) |
| CIE-LAB | lab(34.14, 30.00, -60.38) |
| CIE-LCH | lch(34.14, 67.42, 296.42°) |
| OKLab | oklab(44.38% -0.0025 -0.1743) |
| OKLCH | oklch(44.38% 0.174 269.2) |
| XYZ | xyz(11.3335, 8.0737, 43.0719) |
| Luminance | 0.0808 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.91
Sapphire (survey)
#2138AB
ΔE00 3.89
Cobalt
#0047AB
ΔE00 4.04
Ocean Blue
#4F42B5
ΔE00 4.92
Blue (survey)
#0343DF
ΔE00 5.57
Sapphire
#0F52BA
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F45B2 #B29C2F
analogous
#2F87B2 #2F45B2 #5B2FB2
triadic
#2F45B2 #B22F45 #45B22F
tetradic
#2F45B2 #B22F87 #B29C2F #2FB25B
square
#2F45B2 #B22F87 #B29C2F #2FB25B
split-complementary
#2F45B2 #B25B2F #87B22F
monochromatic
#151F51 #223282 #2F45B2 #4E64D0 #7E8EDD
Accessibility & contrast
On white
8.03
#2F45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#2F45B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F45B2
8.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F45B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F45B2 | 1.00 | 8.03 | 2.62 | 8.03 |
| #FFFFFF | 8.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2f45b2; /* rgb */ color: rgb(47, 69, 178); /* oklch */ color: oklch(44.4% 0.174 269.2);
Tailwind
colors: {
custom: {
50: '#7a78ca',
500: '#2f45b2',
950: '#000000',
},
}SCSS
$custom: #2f45b2; $custom-light: #7a78ca; $custom-dark: #000000;
JSON
{
"hex": "#2f45b2",
"rgb": {
"r": 47,
"g": 69,
"b": 178
},
"hsl": {
"h": 229.924,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.44384,
"c": 0.17437,
"h": 269.2
},
"luminance": 0.08075
}Semantic roles & 50–950 ramp
primary
#2F45B2
secondary
#C6B977
accent
#C746E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82