#2A4882#2A4882

#2A4882 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.104 H 262.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2A4882
RGBrgb(42, 72, 130)
HSLhsl(220, 51%, 34%)
HSVhsv(220, 68%, 51%)
CMYKcmyk(67.7%, 44.6%, 0%, 49%)
CIE-LABlab(31.20, 9.08, -36.03)
CIE-LCHlch(31.20, 37.15, 284.14°)
OKLaboklab(40.99% -0.0141 -0.1028)
OKLCHoklch(40.99% 0.104 262.2)
XYZxyz(7.3001, 6.7380, 22.0306)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4882 #82642A
analogous
#2A7482 #2A4882 #382A82
triadic
#2A4882 #822A48 #48822A
tetradic
#2A4882 #822A74 #82642A #2A8238
square
#2A4882 #822A74 #82642A #2A8238
split-complementary
#2A4882 #82382A #74822A
monochromatic
#0C1525 #1B2E54 #2A4882 #3962B0 #5C82CA

Accessibility & contrast

On white

8.94
#2A4882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2A4882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4882
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4882#FFFFFF#000000##FFFFFF
##2A48821.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4E84
Deuteranopia (green-blind)
#1F4681
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4882;
/* rgb */ color: rgb(42, 72, 130);
/* oklch */ color: oklch(41.0% 0.104 262.2);
Tailwind
colors: {
  custom: {
    50: '#6e7aa7',
    500: '#2a4882',
    950: '#000000',
  },
}
SCSS
$custom: #2a4882;
$custom-light: #6e7aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4882",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 130
  },
  "hsl": {
    "h": 219.545,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40987,
    "c": 0.10379,
    "h": 262.2
  },
  "luminance": 0.06739
}

Semantic roles & 50–950 ramp

primary
#2A4882
secondary
#B09258
accent
#AA4DDB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4882

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

Preview Lab → · Contrast checker → · Palette generator →

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