#2A4571#2A4571

#2A4571 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.2% C 0.082 H 259.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2A4571
RGBrgb(42, 69, 113)
HSLhsl(217, 46%, 30%)
HSVhsv(217, 63%, 44%)
CMYKcmyk(62.8%, 38.9%, 0%, 55.7%)
CIE-LABlab(29.26, 4.69, -28.48)
CIE-LCHlch(29.26, 28.86, 279.34°)
OKLaboklab(39.15% -0.0146 -0.0807)
OKLCHoklch(39.15% 0.082 259.7)
XYZxyz(6.0626, 5.9402, 16.4467)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4571 #71562A
analogous
#2A6871 #2A4571 #322A71
triadic
#2A4571 #712A45 #45712A
tetradic
#2A4571 #712A68 #71562A #2A7132
square
#2A4571 #712A68 #71562A #2A7132
split-complementary
#2A4571 #71322A #68712A
monochromatic
#090F18 #192A44 #2A4571 #3B609E #557EC0

Accessibility & contrast

On white

9.60
#2A4571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A4571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4571
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4571#FFFFFF#000000##FFFFFF
##2A45711.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324973
Deuteranopia (green-blind)
#294270
Tritanopia (blue-blind)
#004F55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4571;
/* rgb */ color: rgb(42, 69, 113);
/* oklch */ color: oklch(39.2% 0.082 259.7);
Tailwind
colors: {
  custom: {
    50: '#6a789a',
    500: '#2a4571',
    950: '#000000',
  },
}
SCSS
$custom: #2a4571;
$custom-light: #6a789a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4571",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 113
  },
  "hsl": {
    "h": 217.183,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39152,
    "c": 0.08205,
    "h": 259.7
  },
  "luminance": 0.05941
}

Semantic roles & 50–950 ramp

primary
#2A4571
secondary
#A38554
accent
#A452D5
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2A4571

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

Preview Lab → · Contrast checker → · Palette generator →

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