#2C4887#2C4887

#2C4887 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.4% C 0.110 H 264.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2C4887
RGBrgb(44, 72, 135)
HSLhsl(222, 51%, 35%)
HSVhsv(222, 67%, 53%)
CMYKcmyk(67.4%, 46.7%, 0%, 47.1%)
CIE-LABlab(31.62, 11.34, -38.45)
CIE-LCHlch(31.62, 40.09, 286.44°)
OKLaboklab(41.44% -0.0113 -0.1099)
OKLCHoklch(41.44% 0.11 264.1)
XYZxyz(7.7277, 6.9187, 23.8452)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4887 #876B2C
analogous
#2C7687 #2C4887 #3D2C87
triadic
#2C4887 #872C48 #48872C
tetradic
#2C4887 #872C76 #876B2C #2C873D
square
#2C4887 #872C76 #876B2C #2C873D
split-complementary
#2C4887 #873D2C #76872C
monochromatic
#0E172B #1D2F59 #2C4887 #3B61B5 #6282CC

Accessibility & contrast

On white

8.81
#2C4887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2C4887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4887
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4887#FFFFFF#000000##FFFFFF
##2C48871.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F89
Deuteranopia (green-blind)
#194686
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c4887;
/* rgb */ color: rgb(44, 72, 135);
/* oklch */ color: oklch(41.4% 0.110 264.1);
Tailwind
colors: {
  custom: {
    50: '#6f7aaa',
    500: '#2c4887',
    950: '#000000',
  },
}
SCSS
$custom: #2c4887;
$custom-light: #6f7aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4887",
  "rgb": {
    "r": 44,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 221.538,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41439,
    "c": 0.11048,
    "h": 264.1
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

primary
#2C4887
secondary
#B2985D
accent
#AF4DDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C4887

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

Preview Lab → · Contrast checker → · Palette generator →

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