#2A478A#2A478A

#2A478A is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.117 H 264.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2A478A
RGBrgb(42, 71, 138)
HSLhsl(222, 53%, 35%)
HSVhsv(222, 70%, 54%)
CMYKcmyk(69.6%, 48.6%, 0%, 45.9%)
CIE-LABlab(31.42, 12.81, -40.62)
CIE-LCHlch(31.42, 42.59, 287.51°)
OKLaboklab(41.32% -0.0116 -0.1163)
OKLCHoklch(41.32% 0.117 264.3)
XYZxyz(7.7939, 6.8329, 24.9480)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A478A #8A6D2A
analogous
#2A778A #2A478A #3D2A8A
triadic
#2A478A #8A2A47 #478A2A
tetradic
#2A478A #8A2A77 #8A6D2A #2A8A3D
square
#2A478A #8A2A77 #8A6D2A #2A8A3D
split-complementary
#2A478A #8A3D2A #778A2A
monochromatic
#0D172C #1C2F5B #2A478A #385FB9 #6081CF

Accessibility & contrast

On white

8.87
#2A478A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2A478A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A478A
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A478A#FFFFFF#000000##FFFFFF
##2A478A1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8C
Deuteranopia (green-blind)
#0F4689
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a478a;
/* rgb */ color: rgb(42, 71, 138);
/* oklch */ color: oklch(41.3% 0.117 264.3);
Tailwind
colors: {
  custom: {
    50: '#6f79ad',
    500: '#2a478a',
    950: '#000000',
  },
}
SCSS
$custom: #2a478a;
$custom-light: #6f79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a478a",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 138
  },
  "hsl": {
    "h": 221.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41323,
    "c": 0.11692,
    "h": 264.3
  },
  "luminance": 0.06834
}

Semantic roles & 50–950 ramp

primary
#2A478A
secondary
#B4995B
accent
#B14BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A478A

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

Preview Lab → · Contrast checker → · Palette generator →

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