#2A478D#2A478D

#2A478D is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.5% C 0.121 H 264.7°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2A478D
RGBrgb(42, 71, 141)
HSLhsl(222, 54%, 36%)
HSVhsv(222, 70%, 55%)
CMYKcmyk(70.2%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.63, 13.97, -42.14)
CIE-LCHlch(31.63, 44.39, 288.34°)
OKLaboklab(41.54% -0.0112 -0.1208)
OKLCHoklch(41.54% 0.121 264.7)
XYZxyz(8.0141, 6.9210, 26.1077)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A478D #8D702A
analogous
#2A788D #2A478D #3E2A8D
triadic
#2A478D #8D2A47 #478D2A
tetradic
#2A478D #8D2A78 #8D702A #2A8D3E
square
#2A478D #8D2A78 #8D702A #2A8D3E
split-complementary
#2A478D #8D3E2A #788D2A
monochromatic
#0E182F #1C2F5E #2A478D #385FBC #6182D0

Accessibility & contrast

On white

8.81
#2A478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A478D
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A478D#FFFFFF#000000##FFFFFF
##2A478D1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F90
Deuteranopia (green-blind)
#07468C
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a478d;
/* rgb */ color: rgb(42, 71, 141);
/* oklch */ color: oklch(41.5% 0.121 264.7);
Tailwind
colors: {
  custom: {
    50: '#7079af',
    500: '#2a478d',
    950: '#000000',
  },
}
SCSS
$custom: #2a478d;
$custom-light: #7079af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a478d",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 222.424,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41544,
    "c": 0.12131,
    "h": 264.7
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

primary
#2A478D
secondary
#B69C5D
accent
#B24ADD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A478D

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

Preview Lab → · Contrast checker → · Palette generator →

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