#2D478C#2D478C

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

Color values

HEX#2D478C
RGBrgb(45, 71, 140)
HSLhsl(224, 51%, 36%)
HSVhsv(224, 68%, 55%)
CMYKcmyk(67.9%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.71, 14.09, -41.38)
CIE-LCHlch(31.71, 43.72, 288.81°)
OKLaboklab(41.63% -0.0085 -0.1185)
OKLCHoklch(41.63% 0.119 265.9)
XYZxyz(8.0674, 6.9570, 25.7236)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D478C #8C722D
analogous
#2D778C #2D478C #432D8C
triadic
#2D478C #8C2D47 #478C2D
tetradic
#2D478C #8C2D77 #8C722D #2D8C43
square
#2D478C #8C2D77 #8C722D #2D8C43
split-complementary
#2D478C #8C432D #778C2D
monochromatic
#0F182F #1E305E #2D478C #3C5EBA #6682CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D478C#FFFFFF#000000##FFFFFF
##2D478C1.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)
#234F8F
Deuteranopia (green-blind)
#0D478B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d478c;
/* rgb */ color: rgb(45, 71, 140);
/* oklch */ color: oklch(41.6% 0.119 265.9);
Tailwind
colors: {
  custom: {
    50: '#7179ae',
    500: '#2d478c',
    950: '#000000',
  },
}
SCSS
$custom: #2d478c;
$custom-light: #7179ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d478c",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 223.579,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41626,
    "c": 0.11882,
    "h": 265.9
  },
  "luminance": 0.06958
}

Semantic roles & 50–950 ramp

primary
#2D478C
secondary
#B49D60
accent
#B44DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D478C

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

Preview Lab → · Contrast checker → · Palette generator →

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