#2F57AB#2F57AB
#2F57AB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.142 H 263.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2F57AB |
|---|---|
| RGB | rgb(47, 87, 171) |
| HSL | hsl(221, 57%, 43%) |
| HSV | hsv(221, 73%, 67%) |
| CMYK | cmyk(72.5%, 49.1%, 0%, 32.9%) |
| CIE-LAB | lab(38.48, 15.50, -49.18) |
| CIE-LCH | lch(38.48, 51.56, 287.50°) |
| OKLab | oklab(47.49% -0.0174 -0.1411) |
| OKLCH | oklch(47.49% 0.142 263) |
| XYZ | xyz(11.9286, 10.3597, 39.8912) |
| Luminance | 0.1036 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.71
Denim Blue
#3B5B92
ΔE00 3.61
Dusk Blue
#26538D
ΔE00 4.41
Denim
#1560BD
ΔE00 4.44
Dusky Blue
#475F94
ΔE00 4.97
Light Navy Blue
#2E5A88
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F57AB #AB832F
analogous
#2F95AB #2F57AB #452FAB
triadic
#2F57AB #AB2F57 #57AB2F
tetradic
#2F57AB #AB2F95 #AB832F #2FAB45
square
#2F57AB #AB2F95 #AB832F #2FAB45
split-complementary
#2F57AB #AB452F #95AB2F
monochromatic
#15264B #223F7B #2F57AB #4A74CD #7A99DA
Accessibility & contrast
On white
6.84
#2F57AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#2F57AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F57AB
6.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F57AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F57AB | 1.00 | 6.84 | 3.07 | 6.84 |
| #FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2f57ab; /* rgb */ color: rgb(47, 87, 171); /* oklch */ color: oklch(47.5% 0.142 263.0);
Tailwind
colors: {
custom: {
50: '#7885c5',
500: '#2f57ab',
950: '#000000',
},
}SCSS
$custom: #2f57ab; $custom-light: #7885c5; $custom-dark: #000000;
JSON
{
"hex": "#2f57ab",
"rgb": {
"r": 47,
"g": 87,
"b": 171
},
"hsl": {
"h": 220.645,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.47493,
"c": 0.14222,
"h": 263
},
"luminance": 0.10361
}Semantic roles & 50–950 ramp
primary
#2F57AB
secondary
#C3A973
accent
#AF48E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82