#2A47A4#2A47A4

#2A47A4 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.3% C 0.154 H 266.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2A47A4
RGBrgb(42, 71, 164)
HSLhsl(226, 59%, 40%)
HSVhsv(226, 74%, 64%)
CMYKcmyk(74.4%, 56.7%, 0%, 35.7%)
CIE-LABlab(33.30, 22.79, -53.39)
CIE-LCHlch(33.30, 58.05, 293.12°)
OKLaboklab(43.35% -0.0089 -0.1539)
OKLCHoklch(43.35% 0.154 266.7)
XYZxyz(9.9066, 7.6780, 36.0747)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A47A4 #A4872A
analogous
#2A84A4 #2A47A4 #4A2AA4
triadic
#2A47A4 #A42A47 #47A42A
tetradic
#2A47A4 #A42A84 #A4872A #2AA44A
square
#2A47A4 #A42A84 #A4872A #2AA44A
split-complementary
#2A47A4 #A44A2A #84A42A
monochromatic
#111D43 #1E3273 #2A47A4 #3E60CD #6E88DA

Accessibility & contrast

On white

8.28
#2A47A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2A47A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A47A4
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A47A4#FFFFFF#000000##FFFFFF
##2A47A41.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#005E6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a47a4;
/* rgb */ color: rgb(42, 71, 164);
/* oklch */ color: oklch(43.3% 0.154 266.7);
Tailwind
colors: {
  custom: {
    50: '#7579c0',
    500: '#2a47a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a47a4;
$custom-light: #7579c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a47a4",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 164
  },
  "hsl": {
    "h": 225.738,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43347,
    "c": 0.15416,
    "h": 266.7
  },
  "luminance": 0.07679
}

Semantic roles & 50–950 ramp

primary
#2A47A4
secondary
#C1AC69
accent
#BD45E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2A47A4

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

Preview Lab → · Contrast checker → · Palette generator →

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