#2F45C0#2F45C0
#2F45C0 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.193 H 269.1°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).
Color values
| HEX | #2F45C0 |
|---|---|
| RGB | rgb(47, 69, 192) |
| HSL | hsl(231, 61%, 47%) |
| HSV | hsv(231, 76%, 75%) |
| CMYK | cmyk(75.5%, 64.1%, 0%, 24.7%) |
| CIE-LAB | lab(35.33, 35.11, -66.67) |
| CIE-LCH | lch(35.33, 75.35, 297.77°) |
| OKLab | oklab(45.64% -0.0029 -0.1928) |
| OKLCH | oklch(45.64% 0.193 269.1) |
| XYZ | xyz(12.8116, 8.6650, 50.8563) |
| Luminance | 0.0867 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.33
Blue (survey)
#0343DF
ΔE00 3.76
Ocean Blue
#4F42B5
ΔE00 4.55
Sapphire (survey)
#2138AB
ΔE00 4.66
Cobalt
#0047AB
ΔE00 5.26
Blue With A Hint Of Purple
#533CC6
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F45C0 #C0AA2F
analogous
#2F8DC0 #2F45C0 #622FC0
triadic
#2F45C0 #C02F45 #45C02F
tetradic
#2F45C0 #C02F8D #C0AA2F #2FC062
square
#2F45C0 #C02F8D #C0AA2F #2FC062
split-complementary
#2F45C0 #C0622F #8DC02F
monochromatic
#17225E #23338F #2F45C0 #566AD6 #8895E2
Accessibility & contrast
On white
7.68
#2F45C0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#2F45C0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F45C0
7.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F45C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F45C0 | 1.00 | 7.68 | 2.73 | 7.68 |
| #FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#00657C
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2f45c0; /* rgb */ color: rgb(47, 69, 192); /* oklch */ color: oklch(45.6% 0.193 269.1);
Tailwind
colors: {
custom: {
50: '#7e78d4',
500: '#2f45c0',
950: '#000000',
},
}SCSS
$custom: #2f45c0; $custom-light: #7e78d4; $custom-dark: #000000;
JSON
{
"hex": "#2f45c0",
"rgb": {
"r": 47,
"g": 69,
"b": 192
},
"hsl": {
"h": 230.897,
"s": 60.669,
"l": 46.863
},
"oklch": {
"l": 0.45636,
"c": 0.19284,
"h": 269.1
},
"luminance": 0.08666
}Semantic roles & 50–950 ramp
primary
#2F45C0
secondary
#CBC07F
accent
#CC44E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0914
muted
#7C7B83