#2B4571#2B4571

#2B4571 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.2% C 0.082 H 260.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2B4571
RGBrgb(43, 69, 113)
HSLhsl(218, 45%, 31%)
HSVhsv(218, 62%, 44%)
CMYKcmyk(61.9%, 38.9%, 0%, 55.7%)
CIE-LABlab(29.32, 4.90, -28.39)
CIE-LCHlch(29.32, 28.81, 279.80°)
OKLaboklab(39.21% -0.0137 -0.0805)
OKLCHoklch(39.21% 0.082 260.4)
XYZxyz(6.1040, 5.9616, 16.4486)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4571 #71572B
analogous
#2B6871 #2B4571 #342B71
triadic
#2B4571 #712B45 #45712B
tetradic
#2B4571 #712B68 #71572B #2B7134
square
#2B4571 #712B68 #71572B #2B7134
split-complementary
#2B4571 #71342B #68712B
monochromatic
#090F18 #1A2A45 #2B4571 #3C609D #577EBF

Accessibility & contrast

On white

9.58
#2B4571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2B4571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4571
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4571#FFFFFF#000000##FFFFFF
##2B45711.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324973
Deuteranopia (green-blind)
#294270
Tritanopia (blue-blind)
#004F55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2b4571;
/* rgb */ color: rgb(43, 69, 113);
/* oklch */ color: oklch(39.2% 0.082 260.4);
Tailwind
colors: {
  custom: {
    50: '#6b789a',
    500: '#2b4571',
    950: '#000000',
  },
}
SCSS
$custom: #2b4571;
$custom-light: #6b789a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4571",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 113
  },
  "hsl": {
    "h": 217.714,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39209,
    "c": 0.08161,
    "h": 260.4
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#2B4571
secondary
#A38655
accent
#A553D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2B4571

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2B4571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva