#2C4871#2C4871

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

Color values

HEX#2C4871
RGBrgb(44, 72, 113)
HSLhsl(216, 44%, 31%)
HSVhsv(216, 61%, 44%)
CMYKcmyk(61.1%, 36.3%, 0%, 55.7%)
CIE-LABlab(30.31, 3.13, -26.82)
CIE-LCHlch(30.31, 27.00, 276.66°)
OKLaboklab(40% -0.0163 -0.0758)
OKLCHoklch(40% 0.078 257.8)
XYZxyz(6.3357, 6.3619, 16.5137)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4871 #71552C
analogous
#2C6A71 #2C4871 #322C71
triadic
#2C4871 #712C48 #48712C
tetradic
#2C4871 #712C6A #71552C #2C7132
square
#2C4871 #712C6A #71552C #2C7132
split-complementary
#2C4871 #71322C #6A712C
monochromatic
#0A1019 #1B2C45 #2C4871 #3D649D #5982BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C4871#FFFFFF#000000##FFFFFF
##2C48711.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)
#374B73
Deuteranopia (green-blind)
#2E4470
Tritanopia (blue-blind)
#005157
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c4871;
/* rgb */ color: rgb(44, 72, 113);
/* oklch */ color: oklch(40.0% 0.078 257.8);
Tailwind
colors: {
  custom: {
    50: '#6b7a9a',
    500: '#2c4871',
    950: '#000000',
  },
}
SCSS
$custom: #2c4871;
$custom-light: #6b7a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4871",
  "rgb": {
    "r": 44,
    "g": 72,
    "b": 113
  },
  "hsl": {
    "h": 215.652,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39996,
    "c": 0.07756,
    "h": 257.8
  },
  "luminance": 0.06362
}

Semantic roles & 50–950 ramp

primary
#2C4871
secondary
#A38456
accent
#A054D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2C4871

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

Preview Lab → · Contrast checker → · Palette generator →

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