#2B4871#2B4871

#2B4871 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 39.9% C 0.078 H 257.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2B4871
RGBrgb(43, 72, 113)
HSLhsl(215, 45%, 31%)
HSVhsv(215, 62%, 44%)
CMYKcmyk(61.9%, 36.3%, 0%, 55.7%)
CIE-LABlab(30.25, 2.90, -26.90)
CIE-LCHlch(30.25, 27.06, 276.16°)
OKLaboklab(39.94% -0.0173 -0.0761)
OKLCHoklch(39.94% 0.078 257.2)
XYZxyz(6.2932, 6.3400, 16.5117)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4871 #71542B
analogous
#2B6B71 #2B4871 #312B71
triadic
#2B4871 #712B48 #48712B
tetradic
#2B4871 #712B6B #71542B #2B7131
square
#2B4871 #712B6B #71542B #2B7131
split-complementary
#2B4871 #71312B #6B712B
monochromatic
#091018 #1A2C45 #2B4871 #3C649D #5782BF

Accessibility & contrast

On white

9.26
#2B4871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2B4871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4871
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4871#FFFFFF#000000##FFFFFF
##2B48711.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374B73
Deuteranopia (green-blind)
#2E4470
Tritanopia (blue-blind)
#005157
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b4871;
/* rgb */ color: rgb(43, 72, 113);
/* oklch */ color: oklch(39.9% 0.078 257.2);
Tailwind
colors: {
  custom: {
    50: '#6b7a9a',
    500: '#2b4871',
    950: '#000000',
  },
}
SCSS
$custom: #2b4871;
$custom-light: #6b7a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4871",
  "rgb": {
    "r": 43,
    "g": 72,
    "b": 113
  },
  "hsl": {
    "h": 215.143,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3994,
    "c": 0.07804,
    "h": 257.2
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#2B4871
secondary
#A38355
accent
#9F53D5
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2B4871

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

Preview Lab → · Contrast checker → · Palette generator →

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