#2D47AC#2D47AC

#2D47AC is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.164 H 267.9°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#2D47AC
RGBrgb(45, 71, 172)
HSLhsl(228, 59%, 43%)
HSVhsv(228, 74%, 67%)
CMYKcmyk(73.8%, 58.7%, 0%, 32.5%)
CIE-LABlab(34.07, 26.20, -56.92)
CIE-LCHlch(34.07, 62.66, 294.72°)
OKLaboklab(44.16% -0.0059 -0.1642)
OKLCHoklch(44.16% 0.164 267.9)
XYZxyz(10.7792, 8.0418, 40.0059)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D47AC #AC922D
analogous
#2D86AC #2D47AC #532DAC
triadic
#2D47AC #AC2D47 #47AC2D
tetradic
#2D47AC #AC2D86 #AC922D #2DAC53
square
#2D47AC #AC2D86 #AC922D #2DAC53
split-complementary
#2D47AC #AC532D #86AC2D
monochromatic
#141F4B #20337B #2D47AC #4763CF #788CDC

Accessibility & contrast

On white

8.05
#2D47AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2D47AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D47AC
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D47AC#FFFFFF#000000##FFFFFF
##2D47AC1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d47ac;
/* rgb */ color: rgb(45, 71, 172);
/* oklch */ color: oklch(44.2% 0.164 267.9);
Tailwind
colors: {
  custom: {
    50: '#7879c6',
    500: '#2d47ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d47ac;
$custom-light: #7879c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d47ac",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 172
  },
  "hsl": {
    "h": 227.717,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44156,
    "c": 0.16433,
    "h": 267.9
  },
  "luminance": 0.08043
}

Semantic roles & 50–950 ramp

primary
#2D47AC
secondary
#C4B371
accent
#C246E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2D47AC

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

Preview Lab → · Contrast checker → · Palette generator →

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