#2C4178#2C4178

#2C4178 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.097 H 266.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2C4178
RGBrgb(44, 65, 120)
HSLhsl(223, 46%, 32%)
HSVhsv(223, 63%, 47%)
CMYKcmyk(63.3%, 45.8%, 0%, 52.9%)
CIE-LABlab(28.57, 10.44, -33.99)
CIE-LCHlch(28.57, 35.55, 287.07°)
OKLaboklab(38.78% -0.0063 -0.0969)
OKLCHoklch(38.78% 0.097 266.3)
XYZxyz(6.3180, 5.6716, 18.5274)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4178 #78632C
analogous
#2C6778 #2C4178 #3D2C78
triadic
#2C4178 #782C41 #41782C
tetradic
#2C4178 #782C67 #78632C #2C783D
square
#2C4178 #782C67 #78632C #2C783D
split-complementary
#2C4178 #783D2C #67782C
monochromatic
#0B101E #1C294B #2C4178 #3C59A5 #5B78C3

Accessibility & contrast

On white

9.84
#2C4178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2C4178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4178
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4178#FFFFFF#000000##FFFFFF
##2C41781.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#1C4077
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c4178;
/* rgb */ color: rgb(44, 65, 120);
/* oklch */ color: oklch(38.8% 0.097 266.3);
Tailwind
colors: {
  custom: {
    50: '#6d759f',
    500: '#2c4178',
    950: '#000000',
  },
}
SCSS
$custom: #2c4178;
$custom-light: #6d759f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4178",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 223.421,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38785,
    "c": 0.0971,
    "h": 266.3
  },
  "luminance": 0.05672
}

Semantic roles & 50–950 ramp

primary
#2C4178
secondary
#A99257
accent
#B152D6
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2C4178

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

Preview Lab → · Contrast checker → · Palette generator →

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