#2A4471#2A4471

#2A4471 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 38.9% C 0.083 H 260.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2A4471
RGBrgb(42, 68, 113)
HSLhsl(218, 46%, 30%)
HSVhsv(218, 63%, 44%)
CMYKcmyk(62.8%, 39.8%, 0%, 55.7%)
CIE-LABlab(28.95, 5.36, -28.97)
CIE-LCHlch(28.95, 29.46, 280.48°)
OKLaboklab(38.91% -0.0134 -0.0822)
OKLCHoklch(38.91% 0.083 260.7)
XYZxyz(6.0016, 5.8182, 16.4263)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4471 #71572A
analogous
#2A6771 #2A4471 #332A71
triadic
#2A4471 #712A44 #44712A
tetradic
#2A4471 #712A67 #71572A #2A7133
square
#2A4471 #712A67 #71572A #2A7133
split-complementary
#2A4471 #71332A #67712A
monochromatic
#090E18 #192944 #2A4471 #3B5F9E #557CC0

Accessibility & contrast

On white

9.71
#2A4471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A4471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4471
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4471#FFFFFF#000000##FFFFFF
##2A44711.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314873
Deuteranopia (green-blind)
#274170
Tritanopia (blue-blind)
#004E55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4471;
/* rgb */ color: rgb(42, 68, 113);
/* oklch */ color: oklch(38.9% 0.083 260.7);
Tailwind
colors: {
  custom: {
    50: '#6a779a',
    500: '#2a4471',
    950: '#000000',
  },
}
SCSS
$custom: #2a4471;
$custom-light: #6a779a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4471",
  "rgb": {
    "r": 42,
    "g": 68,
    "b": 113
  },
  "hsl": {
    "h": 218.028,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3891,
    "c": 0.08328,
    "h": 260.7
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#2A4471
secondary
#A38654
accent
#A552D5
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2A4471

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

Preview Lab → · Contrast checker → · Palette generator →

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