#2D47B2#2D47B2

#2D47B2 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.7% C 0.172 H 268.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2D47B2
RGBrgb(45, 71, 178)
HSLhsl(228, 60%, 44%)
HSVhsv(228, 75%, 70%)
CMYKcmyk(74.7%, 60.1%, 0%, 30.2%)
CIE-LABlab(34.55, 28.45, -59.70)
CIE-LCHlch(34.55, 66.13, 295.48°)
OKLaboklab(44.67% -0.0058 -0.1724)
OKLCHoklch(44.67% 0.172 268.1)
XYZxyz(11.3685, 8.2775, 43.1094)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D47B2 #B2982D
analogous
#2D89B2 #2D47B2 #552DB2
triadic
#2D47B2 #B22D47 #47B22D
tetradic
#2D47B2 #B22D89 #B2982D #2DB255
square
#2D47B2 #B22D89 #B2982D #2DB255
split-complementary
#2D47B2 #B2552D #89B22D
monochromatic
#142050 #213481 #2D47B2 #4B65D1 #7C8FDE

Accessibility & contrast

On white

7.91
#2D47B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2D47B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D47B2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D47B2#FFFFFF#000000##FFFFFF
##2D47B21.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d47b2;
/* rgb */ color: rgb(45, 71, 178);
/* oklch */ color: oklch(44.7% 0.172 268.1);
Tailwind
colors: {
  custom: {
    50: '#7979ca',
    500: '#2d47b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d47b2;
$custom-light: #7979ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d47b2",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 228.271,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44669,
    "c": 0.17248,
    "h": 268.1
  },
  "luminance": 0.08279
}

Semantic roles & 50–950 ramp

primary
#2D47B2
secondary
#C6B675
accent
#C445E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2D47B2

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

Preview Lab → · Contrast checker → · Palette generator →

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