#2C4787#2C4787

#2C4787 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.112 H 264.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2C4787
RGBrgb(44, 71, 135)
HSLhsl(222, 51%, 35%)
HSVhsv(222, 67%, 53%)
CMYKcmyk(67.4%, 47.4%, 0%, 47.1%)
CIE-LABlab(31.33, 12.02, -38.92)
CIE-LCHlch(31.33, 40.74, 287.16°)
OKLaboklab(41.21% -0.0102 -0.1113)
OKLCHoklch(41.21% 0.112 264.7)
XYZxyz(7.6636, 6.7905, 23.8238)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4787 #876C2C
analogous
#2C7487 #2C4787 #3F2C87
triadic
#2C4787 #872C47 #47872C
tetradic
#2C4787 #872C74 #876C2C #2C873F
square
#2C4787 #872C74 #876C2C #2C873F
split-complementary
#2C4787 #873F2C #74872C
monochromatic
#0E162B #1D2F59 #2C4787 #3B5FB5 #6281CC

Accessibility & contrast

On white

8.91
#2C4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2C4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4787
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4787#FFFFFF#000000##FFFFFF
##2C47871.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E89
Deuteranopia (green-blind)
#164686
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c4787;
/* rgb */ color: rgb(44, 71, 135);
/* oklch */ color: oklch(41.2% 0.112 264.7);
Tailwind
colors: {
  custom: {
    50: '#7079aa',
    500: '#2c4787',
    950: '#000000',
  },
}
SCSS
$custom: #2c4787;
$custom-light: #7079aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4787",
  "rgb": {
    "r": 44,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 222.198,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41212,
    "c": 0.11178,
    "h": 264.7
  },
  "luminance": 0.06791
}

Semantic roles & 50–950 ramp

primary
#2C4787
secondary
#B2995D
accent
#B14DDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C4787

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

Preview Lab → · Contrast checker → · Palette generator →

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