#2A47B1#2A47B1

#2A47B1 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.4% C 0.172 H 267.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2A47B1
RGBrgb(42, 71, 177)
HSLhsl(227, 62%, 43%)
HSVhsv(227, 76%, 69%)
CMYKcmyk(76.3%, 59.9%, 0%, 30.6%)
CIE-LABlab(34.34, 27.72, -59.46)
CIE-LCHlch(34.34, 65.61, 295.00°)
OKLaboklab(44.45% -0.0085 -0.1718)
OKLCHoklch(44.45% 0.172 267.2)
XYZxyz(11.1411, 8.1718, 42.5766)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A47B1 #B1942A
analogous
#2A8AB1 #2A47B1 #502AB1
triadic
#2A47B1 #B12A47 #47B12A
tetradic
#2A47B1 #B12A8A #B1942A #2AB150
square
#2A47B1 #B12A8A #B1942A #2AB150
split-complementary
#2A47B1 #B1502A #8AB12A
monochromatic
#131F4E #1E3380 #2A47B1 #4564D3 #778DDF

Accessibility & contrast

On white

7.97
#2A47B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2A47B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A47B1
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A47B1#FFFFFF#000000##FFFFFF
##2A47B11.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B5
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a47b1;
/* rgb */ color: rgb(42, 71, 177);
/* oklch */ color: oklch(44.4% 0.172 267.2);
Tailwind
colors: {
  custom: {
    50: '#7879c9',
    500: '#2a47b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a47b1;
$custom-light: #7879c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a47b1",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 177
  },
  "hsl": {
    "h": 227.111,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44445,
    "c": 0.17196,
    "h": 267.2
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#2A47B1
secondary
#C6B470
accent
#C243E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A47B1

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

Preview Lab → · Contrast checker → · Palette generator →

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