#2F4BAB#2F4BAB
#2F4BAB is a dark, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.157 H 267.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4BAB |
|---|---|
| RGB | rgb(47, 75, 171) |
| HSL | hsl(226, 57%, 43%) |
| HSV | hsv(226, 73%, 67%) |
| CMYK | cmyk(72.5%, 56.1%, 0%, 32.9%) |
| CIE-LAB | lab(35.15, 23.44, -54.56) |
| CIE-LCH | lch(35.15, 59.38, 293.25°) |
| OKLab | oklab(44.97% -0.0072 -0.1572) |
| OKLCH | oklch(44.97% 0.157 267.4) |
| XYZ | xyz(11.0365, 8.5756, 39.5938) |
| Luminance | 0.0858 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.04
Sapphire
#0F52BA
ΔE00 3.95
Blue Blue
#2242C7
ΔE00 4.84
Cobalt (survey)
#1E488F
ΔE00 4.86
Sapphire (survey)
#2138AB
ΔE00 5.85
Dusk Blue
#26538D
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4BAB #AB8F2F
analogous
#2F89AB #2F4BAB #512FAB
triadic
#2F4BAB #AB2F4B #4BAB2F
tetradic
#2F4BAB #AB2F89 #AB8F2F #2FAB51
square
#2F4BAB #AB2F89 #AB8F2F #2FAB51
split-complementary
#2F4BAB #AB512F #89AB2F
monochromatic
#15214B #22367B #2F4BAB #4A68CD #7A90DA
Accessibility & contrast
On white
7.73
#2F4BAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.72
#2F4BAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4BAB
7.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4BAB | 1.00 | 7.73 | 2.72 | 7.73 |
| #FFFFFF | 7.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2f4bab; /* rgb */ color: rgb(47, 75, 171); /* oklch */ color: oklch(45.0% 0.157 267.4);
Tailwind
colors: {
custom: {
50: '#787cc5',
500: '#2f4bab',
950: '#000000',
},
}SCSS
$custom: #2f4bab; $custom-light: #787cc5; $custom-dark: #000000;
JSON
{
"hex": "#2f4bab",
"rgb": {
"r": 47,
"g": 75,
"b": 171
},
"hsl": {
"h": 226.452,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.4497,
"c": 0.15735,
"h": 267.4
},
"luminance": 0.08577
}Semantic roles & 50–950 ramp
primary
#2F4BAB
secondary
#C3B173
accent
#BE48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82