#2F45A6#2F45A6
#2F45A6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.4% C 0.158 H 269.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2F45A6 |
|---|---|
| RGB | rgb(47, 69, 166) |
| HSL | hsl(229, 56%, 42%) |
| HSV | hsv(229, 72%, 65%) |
| CMYK | cmyk(71.7%, 58.4%, 0%, 34.9%) |
| CIE-LAB | lab(33.16, 25.55, -54.80) |
| CIE-LCH | lch(33.16, 60.47, 294.99°) |
| OKLab | oklab(43.36% -0.0026 -0.158) |
| OKLCH | oklch(43.36% 0.158 269.1) |
| XYZ | xyz(10.1810, 7.6127, 37.0019) |
| Luminance | 0.0761 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.52
Sapphire (survey)
#2138AB
ΔE00 4.07
Blue Blue
#2242C7
ΔE00 4.58
Blueberry
#464196
ΔE00 4.88
Cobalt (survey)
#1E488F
ΔE00 5.07
Sapphire
#0F52BA
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F45A6 #A6902F
analogous
#2F81A6 #2F45A6 #552FA6
triadic
#2F45A6 #A62F45 #45A62F
tetradic
#2F45A6 #A62F81 #A6902F #2FA655
square
#2F45A6 #A62F81 #A6902F #2FA655
split-complementary
#2F45A6 #A6552F #81A62F
monochromatic
#141D47 #213176 #2F45A6 #4760CB #7789D8
Accessibility & contrast
On white
8.32
#2F45A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.52
#2F45A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F45A6
8.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F45A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F45A6 | 1.00 | 8.32 | 2.52 | 8.32 |
| #FFFFFF | 8.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2f45a6; /* rgb */ color: rgb(47, 69, 166); /* oklch */ color: oklch(43.4% 0.158 269.1);
Tailwind
colors: {
custom: {
50: '#7878c1',
500: '#2f45a6',
950: '#000000',
},
}SCSS
$custom: #2f45a6; $custom-light: #7878c1; $custom-dark: #000000;
JSON
{
"hex": "#2f45a6",
"rgb": {
"r": 47,
"g": 69,
"b": 166
},
"hsl": {
"h": 228.908,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.43357,
"c": 0.15801,
"h": 269.1
},
"luminance": 0.07614
}Semantic roles & 50–950 ramp
primary
#2F45A6
secondary
#C1B270
accent
#C349DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81