#2A47AB#2A47AB

#2A47AB is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.9% C 0.164 H 267.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2A47AB
RGBrgb(42, 71, 171)
HSLhsl(227, 61%, 42%)
HSVhsv(227, 75%, 67%)
CMYKcmyk(75.4%, 58.5%, 0%, 32.9%)
CIE-LABlab(33.85, 25.46, -56.68)
CIE-LCHlch(33.85, 62.14, 294.19°)
OKLaboklab(43.93% -0.0086 -0.1636)
OKLCHoklch(43.93% 0.164 267)
XYZxyz(10.5562, 7.9378, 39.4960)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A47AB #AB8E2A
analogous
#2A87AB #2A47AB #4E2AAB
triadic
#2A47AB #AB2A47 #47AB2A
tetradic
#2A47AB #AB2A87 #AB8E2A #2AAB4E
square
#2A47AB #AB2A87 #AB8E2A #2AAB4E
split-complementary
#2A47AB #AB4E2A #87AB2A
monochromatic
#121E49 #1E337A #2A47AB #4262D1 #738BDD

Accessibility & contrast

On white

8.12
#2A47AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2A47AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A47AB
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A47AB#FFFFFF#000000##FFFFFF
##2A47AB1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a47ab;
/* rgb */ color: rgb(42, 71, 171);
/* oklch */ color: oklch(43.9% 0.164 267.0);
Tailwind
colors: {
  custom: {
    50: '#7779c5',
    500: '#2a47ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a47ab;
$custom-light: #7779c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a47ab",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 171
  },
  "hsl": {
    "h": 226.512,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43932,
    "c": 0.16382,
    "h": 267
  },
  "luminance": 0.07939
}

Semantic roles & 50–950 ramp

primary
#2A47AB
secondary
#C4B06D
accent
#C044E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A47AB

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

Preview Lab → · Contrast checker → · Palette generator →

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