#2D47A8#2D47A8

#2D47A8 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.8% C 0.159 H 267.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#2D47A8
RGBrgb(45, 71, 168)
HSLhsl(227, 58%, 42%)
HSVhsv(227, 73%, 66%)
CMYKcmyk(73.2%, 57.7%, 0%, 34.1%)
CIE-LABlab(33.75, 24.70, -55.05)
CIE-LCHlch(33.75, 60.33, 294.17°)
OKLaboklab(43.82% -0.006 -0.1587)
OKLCHoklch(43.82% 0.159 267.8)
XYZxyz(10.4009, 7.8904, 38.0131)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D47A8 #A88E2D
analogous
#2D85A8 #2D47A8 #512DA8
triadic
#2D47A8 #A82D47 #47A82D
tetradic
#2D47A8 #A82D85 #A88E2D #2DA851
square
#2D47A8 #A82D85 #A88E2D #2DA851
split-complementary
#2D47A8 #A8512D #85A82D
monochromatic
#131E47 #203378 #2D47A8 #4562CD #758BDA

Accessibility & contrast

On white

8.14
#2D47A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2D47A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D47A8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D47A8#FFFFFF#000000##FFFFFF
##2D47A81.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d47a8;
/* rgb */ color: rgb(45, 71, 168);
/* oklch */ color: oklch(43.8% 0.159 267.8);
Tailwind
colors: {
  custom: {
    50: '#7779c3',
    500: '#2d47a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d47a8;
$custom-light: #7779c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d47a8",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 168
  },
  "hsl": {
    "h": 227.317,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43821,
    "c": 0.15883,
    "h": 267.8
  },
  "luminance": 0.07892
}

Semantic roles & 50–950 ramp

primary
#2D47A8
secondary
#C2B06F
accent
#C047E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2D47A8

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

Preview Lab → · Contrast checker → · Palette generator →

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