#2A47A6#2A47A6

#2A47A6 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.5% C 0.157 H 266.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2A47A6
RGBrgb(42, 71, 166)
HSLhsl(226, 60%, 41%)
HSVhsv(226, 75%, 65%)
CMYKcmyk(74.7%, 57.2%, 0%, 34.9%)
CIE-LABlab(33.46, 23.55, -54.33)
CIE-LCHlch(33.46, 59.22, 293.44°)
OKLaboklab(43.51% -0.0088 -0.1567)
OKLCHoklch(43.51% 0.157 266.8)
XYZxyz(10.0886, 7.7508, 37.0334)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A47A6 #A6892A
analogous
#2A85A6 #2A47A6 #4B2AA6
triadic
#2A47A6 #A62A47 #47A62A
tetradic
#2A47A6 #A62A85 #A6892A #2AA64B
square
#2A47A6 #A62A85 #A6892A #2AA64B
split-complementary
#2A47A6 #A64B2A #85A62A
monochromatic
#111D44 #1E3275 #2A47A6 #3F60CE #7089DB

Accessibility & contrast

On white

8.23
#2A47A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2A47A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A47A6
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A47A6#FFFFFF#000000##FFFFFF
##2A47A61.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a47a6;
/* rgb */ color: rgb(42, 71, 166);
/* oklch */ color: oklch(43.5% 0.157 266.8);
Tailwind
colors: {
  custom: {
    50: '#7679c1',
    500: '#2a47a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a47a6;
$custom-light: #7679c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a47a6",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 166
  },
  "hsl": {
    "h": 225.968,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43512,
    "c": 0.15694,
    "h": 266.8
  },
  "luminance": 0.07752
}

Semantic roles & 50–950 ramp

primary
#2A47A6
secondary
#C2AD6A
accent
#BE45E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2A47A6

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

Preview Lab → · Contrast checker → · Palette generator →

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