#2B4872#2B4872

#2B4872 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.0% C 0.080 H 257.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2B4872
RGBrgb(43, 72, 114)
HSLhsl(215, 45%, 31%)
HSVhsv(215, 62%, 45%)
CMYKcmyk(62.3%, 36.8%, 0%, 55.3%)
CIE-LABlab(30.31, 3.27, -27.45)
CIE-LCHlch(30.31, 27.64, 276.80°)
OKLaboklab(40% -0.017 -0.0777)
OKLCHoklch(40% 0.08 257.6)
XYZxyz(6.3498, 6.3627, 16.8098)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4872 #72552B
analogous
#2B6B72 #2B4872 #312B72
triadic
#2B4872 #722B48 #48722B
tetradic
#2B4872 #722B6B #72552B #2B7231
square
#2B4872 #722B6B #72552B #2B7231
split-complementary
#2B4872 #72312B #6B722B
monochromatic
#091019 #1A2C46 #2B4872 #3C649E #5882C0

Accessibility & contrast

On white

9.24
#2B4872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B4872
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4872#FFFFFF#000000##FFFFFF
##2B48721.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B74
Deuteranopia (green-blind)
#2D4471
Tritanopia (blue-blind)
#005157
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b4872;
/* rgb */ color: rgb(43, 72, 114);
/* oklch */ color: oklch(40.0% 0.080 257.6);
Tailwind
colors: {
  custom: {
    50: '#6b7a9b',
    500: '#2b4872',
    950: '#000000',
  },
}
SCSS
$custom: #2b4872;
$custom-light: #6b7a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4872",
  "rgb": {
    "r": 43,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 215.493,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40001,
    "c": 0.07952,
    "h": 257.6
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#2B4872
secondary
#A48455
accent
#A053D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2B4872

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

Preview Lab → · Contrast checker → · Palette generator →

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