#2A47A8#2A47A8

#2A47A8 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.160 H 266.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#2A47A8
RGBrgb(42, 71, 168)
HSLhsl(226, 60%, 41%)
HSVhsv(226, 75%, 66%)
CMYKcmyk(75%, 57.7%, 0%, 34.1%)
CIE-LABlab(33.62, 24.32, -55.28)
CIE-LCHlch(33.62, 60.39, 293.74°)
OKLaboklab(43.68% -0.0087 -0.1595)
OKLCHoklch(43.68% 0.16 266.9)
XYZxyz(10.2735, 7.8248, 38.0071)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A47A8 #A88B2A
analogous
#2A86A8 #2A47A8 #4C2AA8
triadic
#2A47A8 #A82A47 #47A82A
tetradic
#2A47A8 #A82A86 #A88B2A #2AA84C
square
#2A47A8 #A82A86 #A88B2A #2AA84C
split-complementary
#2A47A8 #A84C2A #86A82A
monochromatic
#121E46 #1E3277 #2A47A8 #4061CF #7189DB

Accessibility & contrast

On white

8.19
#2A47A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A47A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A47A8
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A47A8#FFFFFF#000000##FFFFFF
##2A47A81.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a47a8;
/* rgb */ color: rgb(42, 71, 168);
/* oklch */ color: oklch(43.7% 0.160 266.9);
Tailwind
colors: {
  custom: {
    50: '#7679c3',
    500: '#2a47a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a47a8;
$custom-light: #7679c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a47a8",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 168
  },
  "hsl": {
    "h": 226.19,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43679,
    "c": 0.1597,
    "h": 266.9
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#2A47A8
secondary
#C3AE6B
accent
#BF45E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2A47A8

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

Preview Lab → · Contrast checker → · Palette generator →

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