#2C478C#2C478C

#2C478C is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.6% C 0.119 H 265.5°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2C478C
RGBrgb(44, 71, 140)
HSLhsl(223, 52%, 36%)
HSVhsv(223, 69%, 55%)
CMYKcmyk(68.6%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.66, 13.92, -41.47)
CIE-LCHlch(31.66, 43.74, 288.56°)
OKLaboklab(41.57% -0.0094 -0.1188)
OKLCHoklch(41.57% 0.119 265.5)
XYZxyz(8.0239, 6.9346, 25.7215)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C478C #8C712C
analogous
#2C778C #2C478C #412C8C
triadic
#2C478C #8C2C47 #478C2C
tetradic
#2C478C #8C2C77 #8C712C #2C8C41
square
#2C478C #8C2C77 #8C712C #2C8C41
split-complementary
#2C478C #8C412C #778C2C
monochromatic
#0F182F #1D2F5D #2C478C #3B5FBB #6482CE

Accessibility & contrast

On white

8.80
#2C478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2C478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C478C
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C478C#FFFFFF#000000##FFFFFF
##2C478C1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#0C468B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c478c;
/* rgb */ color: rgb(44, 71, 140);
/* oklch */ color: oklch(41.6% 0.119 265.5);
Tailwind
colors: {
  custom: {
    50: '#7179ae',
    500: '#2c478c',
    950: '#000000',
  },
}
SCSS
$custom: #2c478c;
$custom-light: #7179ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c478c",
  "rgb": {
    "r": 44,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 223.125,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.11917,
    "h": 265.5
  },
  "luminance": 0.06935
}

Semantic roles & 50–950 ramp

primary
#2C478C
secondary
#B59D5F
accent
#B34CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C478C

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

Preview Lab → · Contrast checker → · Palette generator →

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