#2D51BC#2D51BC
#2D51BC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.174 H 265.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2D51BC |
|---|---|
| RGB | rgb(45, 81, 188) |
| HSL | hsl(225, 61%, 46%) |
| HSV | hsv(225, 76%, 74%) |
| CMYK | cmyk(76.1%, 56.9%, 0%, 26.3%) |
| CIE-LAB | lab(37.97, 25.63, -60.02) |
| CIE-LCH | lch(37.97, 65.27, 293.12°) |
| OKLab | oklab(47.47% -0.0126 -0.1732) |
| OKLCH | oklch(47.47% 0.174 265.8) |
| XYZ | xyz(13.0985, 10.0721, 48.8210) |
| Luminance | 0.1007 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.52
Cobalt
#0047AB
ΔE00 4.50
Blue Blue
#2242C7
ΔE00 4.96
Blue (survey)
#0343DF
ΔE00 5.98
Warm Blue
#4B57DB
ΔE00 6.16
Denim
#1560BD
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D51BC #BC982D
analogous
#2D98BC #2D51BC #502DBC
triadic
#2D51BC #BC2D51 #51BC2D
tetradic
#2D51BC #BC2D98 #BC982D #2DBC50
square
#2D51BC #BC2D98 #BC982D #2DBC50
split-complementary
#2D51BC #BC502D #98BC2D
monochromatic
#152659 #213C8B #2D51BC #5172D5 #829AE1
Accessibility & contrast
On white
6.97
#2D51BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#2D51BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2D51BC
6.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D51BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D51BC | 1.00 | 6.97 | 3.01 | 6.97 |
| #FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2d51bc; /* rgb */ color: rgb(45, 81, 188); /* oklch */ color: oklch(47.5% 0.174 265.8);
Tailwind
colors: {
custom: {
50: '#7b81d1',
500: '#2d51bc',
950: '#000000',
},
}SCSS
$custom: #2d51bc; $custom-light: #7b81d1; $custom-dark: #000000;
JSON
{
"hex": "#2d51bc",
"rgb": {
"r": 45,
"g": 81,
"b": 188
},
"hsl": {
"h": 224.895,
"s": 61.373,
"l": 45.686
},
"oklch": {
"l": 0.47472,
"c": 0.17366,
"h": 265.8
},
"luminance": 0.10074
}Semantic roles & 50–950 ramp
primary
#2D51BC
secondary
#CAB67B
accent
#BC43E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82