#2C478D#2C478D

#2C478D is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.6% C 0.121 H 265.6°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2C478D
RGBrgb(44, 71, 141)
HSLhsl(223, 52%, 36%)
HSVhsv(223, 69%, 55%)
CMYKcmyk(68.8%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.73, 14.30, -41.97)
CIE-LCHlch(31.73, 44.34, 288.81°)
OKLaboklab(41.65% -0.0093 -0.1203)
OKLCHoklch(41.65% 0.121 265.6)
XYZxyz(8.0980, 6.9643, 26.1116)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C478D #8D722C
analogous
#2C788D #2C478D #422C8D
triadic
#2C478D #8D2C47 #478D2C
tetradic
#2C478D #8D2C78 #8D722C #2C8D42
square
#2C478D #8D2C78 #8D722C #2C8D42
split-complementary
#2C478D #8D422C #788D2C
monochromatic
#0F1830 #1D305E #2C478D #3B5EBC #6582CF

Accessibility & contrast

On white

8.78
#2C478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C478D
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C478D#FFFFFF#000000##FFFFFF
##2C478D1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F90
Deuteranopia (green-blind)
#09468C
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2c478d;
/* rgb */ color: rgb(44, 71, 141);
/* oklch */ color: oklch(41.6% 0.121 265.6);
Tailwind
colors: {
  custom: {
    50: '#7179af',
    500: '#2c478d',
    950: '#000000',
  },
}
SCSS
$custom: #2c478d;
$custom-light: #7179af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c478d",
  "rgb": {
    "r": 44,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 223.299,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41646,
    "c": 0.12064,
    "h": 265.6
  },
  "luminance": 0.06965
}

Semantic roles & 50–950 ramp

primary
#2C478D
secondary
#B59D60
accent
#B44CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C478D

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

Preview Lab → · Contrast checker → · Palette generator →

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