#2A4981#2A4981

#2A4981 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.101 H 261.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2A4981
RGBrgb(42, 73, 129)
HSLhsl(219, 51%, 34%)
HSVhsv(219, 67%, 51%)
CMYKcmyk(67.4%, 43.4%, 0%, 49.4%)
CIE-LABlab(31.44, 8.02, -35.03)
CIE-LCHlch(31.44, 35.93, 282.90°)
OKLaboklab(41.15% -0.0154 -0.0999)
OKLCHoklch(41.15% 0.101 261.3)
XYZxyz(7.2984, 6.8416, 21.7006)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4981 #81622A
analogous
#2A7481 #2A4981 #362A81
triadic
#2A4981 #812A49 #49812A
tetradic
#2A4981 #812A74 #81622A #2A8136
square
#2A4981 #812A74 #81622A #2A8136
split-complementary
#2A4981 #81362A #74812A
monochromatic
#0C1525 #1B2F53 #2A4981 #3963AF #5C83CA

Accessibility & contrast

On white

8.87
#2A4981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2A4981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4981
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4981#FFFFFF#000000##FFFFFF
##2A49811.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4E83
Deuteranopia (green-blind)
#224680
Tritanopia (blue-blind)
#00565E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a4981;
/* rgb */ color: rgb(42, 73, 129);
/* oklch */ color: oklch(41.2% 0.101 261.3);
Tailwind
colors: {
  custom: {
    50: '#6d7ba6',
    500: '#2a4981',
    950: '#000000',
  },
}
SCSS
$custom: #2a4981;
$custom-light: #6d7ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4981",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 129
  },
  "hsl": {
    "h": 218.621,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41152,
    "c": 0.10104,
    "h": 261.3
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#2A4981
secondary
#AF9057
accent
#A84DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4981

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

Preview Lab → · Contrast checker → · Palette generator →

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