#2C4872#2C4872

#2C4872 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.079 H 258.3°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2C4872
RGBrgb(44, 72, 114)
HSLhsl(216, 44%, 31%)
HSVhsv(216, 61%, 45%)
CMYKcmyk(61.4%, 36.8%, 0%, 55.3%)
CIE-LABlab(30.36, 3.49, -27.36)
CIE-LCHlch(30.36, 27.58, 277.28°)
OKLaboklab(40.06% -0.016 -0.0774)
OKLCHoklch(40.06% 0.079 258.3)
XYZxyz(6.3923, 6.3846, 16.8118)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4872 #72562C
analogous
#2C6B72 #2C4872 #332C72
triadic
#2C4872 #722C48 #48722C
tetradic
#2C4872 #722C6B #72562C #2C7233
square
#2C4872 #722C6B #72562C #2C7233
split-complementary
#2C4872 #72332C #6B722C
monochromatic
#0A101A #1B2C46 #2C4872 #3D649E #5982BF

Accessibility & contrast

On white

9.22
#2C4872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2C4872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4872
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4872#FFFFFF#000000##FFFFFF
##2C48721.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c4872;
/* rgb */ color: rgb(44, 72, 114);
/* oklch */ color: oklch(40.1% 0.079 258.3);
Tailwind
colors: {
  custom: {
    50: '#6c7a9b',
    500: '#2c4872',
    950: '#000000',
  },
}
SCSS
$custom: #2c4872;
$custom-light: #6c7a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4872",
  "rgb": {
    "r": 44,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 216,
    "s": 44.304,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40057,
    "c": 0.07906,
    "h": 258.3
  },
  "luminance": 0.06385
}

Semantic roles & 50–950 ramp

primary
#2C4872
secondary
#A48556
accent
#A154D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2C4872

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

Preview Lab → · Contrast checker → · Palette generator →

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