#2D478B#2D478B

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

Color values

HEX#2D478B
RGBrgb(45, 71, 139)
HSLhsl(223, 51%, 36%)
HSVhsv(223, 68%, 55%)
CMYKcmyk(67.6%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.64, 13.72, -40.88)
CIE-LCHlch(31.64, 43.11, 288.55°)
OKLaboklab(41.55% -0.0086 -0.117)
OKLCHoklch(41.55% 0.117 265.8)
XYZxyz(7.9940, 6.9277, 25.3370)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D478B #8B712D
analogous
#2D768B #2D478B #422D8B
triadic
#2D478B #8B2D47 #478B2D
tetradic
#2D478B #8B2D76 #8B712D #2D8B42
square
#2D478B #8B2D76 #8B712D #2D8B42
split-complementary
#2D478B #8B422D #768B2D
monochromatic
#0F182F #1E2F5D #2D478B #3C5FB9 #6582CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D478B#FFFFFF#000000##FFFFFF
##2D478B1.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)
#244F8E
Deuteranopia (green-blind)
#10468A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d478b;
/* rgb */ color: rgb(45, 71, 139);
/* oklch */ color: oklch(41.6% 0.117 265.8);
Tailwind
colors: {
  custom: {
    50: '#7179ad',
    500: '#2d478b',
    950: '#000000',
  },
}
SCSS
$custom: #2d478b;
$custom-light: #7179ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d478b",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 223.404,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41553,
    "c": 0.11735,
    "h": 265.8
  },
  "luminance": 0.06928
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D478B

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

Preview Lab → · Contrast checker → · Palette generator →

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