#2A4887#2A4887

#2A4887 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.3% C 0.111 H 263.2°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2A4887
RGBrgb(42, 72, 135)
HSLhsl(221, 53%, 35%)
HSVhsv(221, 69%, 53%)
CMYKcmyk(68.9%, 46.7%, 0%, 47.1%)
CIE-LABlab(31.52, 10.99, -38.61)
CIE-LCHlch(31.52, 40.14, 285.88°)
OKLaboklab(41.34% -0.0131 -0.1104)
OKLCHoklch(41.34% 0.111 263.2)
XYZxyz(7.6438, 6.8755, 23.8412)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4887 #87692A
analogous
#2A7787 #2A4887 #3B2A87
triadic
#2A4887 #872A48 #48872A
tetradic
#2A4887 #872A77 #87692A #2A873B
square
#2A4887 #872A77 #87692A #2A873B
split-complementary
#2A4887 #873B2A #77872A
monochromatic
#0D162A #1B2F58 #2A4887 #3961B6 #5E82CD

Accessibility & contrast

On white

8.84
#2A4887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A4887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4887
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4887#FFFFFF#000000##FFFFFF
##2A48871.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F89
Deuteranopia (green-blind)
#184686
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a4887;
/* rgb */ color: rgb(42, 72, 135);
/* oklch */ color: oklch(41.3% 0.111 263.2);
Tailwind
colors: {
  custom: {
    50: '#6f7aaa',
    500: '#2a4887',
    950: '#000000',
  },
}
SCSS
$custom: #2a4887;
$custom-light: #6f7aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4887",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 220.645,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41335,
    "c": 0.1112,
    "h": 263.2
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#2A4887
secondary
#B3965A
accent
#AD4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4887

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

Preview Lab → · Contrast checker → · Palette generator →

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