#2D478D#2D478D

#2D478D is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.120 H 266.0°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2D478D
RGBrgb(45, 71, 141)
HSLhsl(224, 52%, 36%)
HSVhsv(224, 68%, 55%)
CMYKcmyk(68.1%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.78, 14.47, -41.89)
CIE-LCHlch(31.78, 44.32, 289.06°)
OKLaboklab(41.7% -0.0083 -0.12)
OKLCHoklch(41.7% 0.12 266)
XYZxyz(8.1415, 6.9867, 26.1136)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D478D #8D732D
analogous
#2D778D #2D478D #432D8D
triadic
#2D478D #8D2D47 #478D2D
tetradic
#2D478D #8D2D77 #8D732D #2D8D43
square
#2D478D #8D2D77 #8D732D #2D8D43
split-complementary
#2D478D #8D432D #778D2D
monochromatic
#0F1830 #1E305F #2D478D #3C5EBB #6682CE

Accessibility & contrast

On white

8.76
#2D478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2D478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D478D
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D478D#FFFFFF#000000##FFFFFF
##2D478D1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F90
Deuteranopia (green-blind)
#0A478C
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d478d;
/* rgb */ color: rgb(45, 71, 141);
/* oklch */ color: oklch(41.7% 0.120 266.0);
Tailwind
colors: {
  custom: {
    50: '#7179af',
    500: '#2d478d',
    950: '#000000',
  },
}
SCSS
$custom: #2d478d;
$custom-light: #7179af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d478d",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 223.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41699,
    "c": 0.1203,
    "h": 266
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#2D478D
secondary
#B59E61
accent
#B54DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D478D

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

Preview Lab → · Contrast checker → · Palette generator →

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