#2F4BAF#2F4BAF
#2F4BAF is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.163 H 267.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2F4BAF |
|---|---|
| RGB | rgb(47, 75, 175) |
| HSL | hsl(227, 58%, 44%) |
| HSV | hsv(227, 73%, 69%) |
| CMYK | cmyk(73.1%, 57.1%, 0%, 31.4%) |
| CIE-LAB | lab(35.46, 24.94, -56.44) |
| CIE-LCH | lch(35.46, 61.70, 293.84°) |
| OKLab | oklab(45.3% -0.007 -0.1627) |
| OKLCH | oklch(45.3% 0.163 267.5) |
| XYZ | xyz(11.4235, 8.7304, 41.6322) |
| Luminance | 0.0873 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.23
Sapphire
#0F52BA
ΔE00 3.87
Blue Blue
#2242C7
ΔE00 4.35
Cobalt (survey)
#1E488F
ΔE00 5.38
Sapphire (survey)
#2138AB
ΔE00 5.76
Ocean Blue
#4F42B5
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F4BAF #AF932F
analogous
#2F8BAF #2F4BAF #532FAF
triadic
#2F4BAF #AF2F4B #4BAF2F
tetradic
#2F4BAF #AF2F8B #AF932F #2FAF53
square
#2F4BAF #AF2F8B #AF932F #2FAF53
split-complementary
#2F4BAF #AF532F #8BAF2F
monochromatic
#15224F #22367F #2F4BAF #4C69CF #7C91DC
Accessibility & contrast
On white
7.65
#2F4BAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#2F4BAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F4BAF
7.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F4BAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F4BAF | 1.00 | 7.65 | 2.75 | 7.65 |
| #FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2f4baf; /* rgb */ color: rgb(47, 75, 175); /* oklch */ color: oklch(45.3% 0.163 267.5);
Tailwind
colors: {
custom: {
50: '#797cc8',
500: '#2f4baf',
950: '#000000',
},
}SCSS
$custom: #2f4baf; $custom-light: #797cc8; $custom-dark: #000000;
JSON
{
"hex": "#2f4baf",
"rgb": {
"r": 47,
"g": 75,
"b": 175
},
"hsl": {
"h": 226.875,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.45296,
"c": 0.16286,
"h": 267.5
},
"luminance": 0.08732
}Semantic roles & 50–950 ramp
primary
#2F4BAF
secondary
#C4B375
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82