#2A4C81#2A4C81

#2A4C81 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.9% C 0.097 H 259.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2A4C81
RGBrgb(42, 76, 129)
HSLhsl(217, 51%, 34%)
HSVhsv(217, 67%, 51%)
CMYKcmyk(67.4%, 41.1%, 0%, 49.4%)
CIE-LABlab(32.36, 6.02, -33.57)
CIE-LCHlch(32.36, 34.10, 280.16°)
OKLaboklab(41.86% -0.0186 -0.0955)
OKLCHoklch(41.86% 0.097 259)
XYZxyz(7.5003, 7.2454, 21.7679)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C81 #815F2A
analogous
#2A7781 #2A4C81 #332A81
triadic
#2A4C81 #812A4C #4C812A
tetradic
#2A4C81 #812A77 #815F2A #2A8133
square
#2A4C81 #812A77 #815F2A #2A8133
split-complementary
#2A4C81 #81332A #77812A
monochromatic
#0C1625 #1B3153 #2A4C81 #3967AF #5C87CA

Accessibility & contrast

On white

8.57
#2A4C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2A4C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C81
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C81#FFFFFF#000000##FFFFFF
##2A4C811.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345183
Deuteranopia (green-blind)
#274880
Tritanopia (blue-blind)
#005860
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4c81;
/* rgb */ color: rgb(42, 76, 129);
/* oklch */ color: oklch(41.9% 0.097 259.0);
Tailwind
colors: {
  custom: {
    50: '#6d7da6',
    500: '#2a4c81',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c81;
$custom-light: #6d7da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c81",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 129
  },
  "hsl": {
    "h": 216.552,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41861,
    "c": 0.09735,
    "h": 259
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#2A4C81
secondary
#AF8D57
accent
#A34DDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4C81

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

Preview Lab → · Contrast checker → · Palette generator →

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