#2D47A5#2D47A5

#2D47A5 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.6% C 0.155 H 267.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2D47A5
RGBrgb(45, 71, 165)
HSLhsl(227, 57%, 41%)
HSVhsv(227, 73%, 65%)
CMYKcmyk(72.7%, 57%, 0%, 35.3%)
CIE-LABlab(33.52, 23.57, -53.63)
CIE-LCHlch(33.52, 58.58, 293.73°)
OKLaboklab(43.57% -0.0061 -0.1545)
OKLCHoklch(43.57% 0.155 267.7)
XYZxyz(10.1246, 7.7799, 36.5581)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D47A5 #A58B2D
analogous
#2D83A5 #2D47A5 #4F2DA5
triadic
#2D47A5 #A52D47 #47A52D
tetradic
#2D47A5 #A52D83 #A58B2D #2DA54F
square
#2D47A5 #A52D83 #A58B2D #2DA54F
split-complementary
#2D47A5 #A54F2D #83A52D
monochromatic
#131E45 #203275 #2D47A5 #4361CC #7389D9

Accessibility & contrast

On white

8.22
#2D47A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2D47A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D47A5
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D47A5#FFFFFF#000000##FFFFFF
##2D47A51.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d47a5;
/* rgb */ color: rgb(45, 71, 165);
/* oklch */ color: oklch(43.6% 0.155 267.7);
Tailwind
colors: {
  custom: {
    50: '#7679c0',
    500: '#2d47a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d47a5;
$custom-light: #7679c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d47a5",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 165
  },
  "hsl": {
    "h": 227,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43572,
    "c": 0.15467,
    "h": 267.7
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

primary
#2D47A5
secondary
#C1AE6D
accent
#BF47E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2D47A5

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

Preview Lab → · Contrast checker → · Palette generator →

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