#2A4881#2A4881

#2A4881 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.102 H 262.0°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2A4881
RGBrgb(42, 72, 129)
HSLhsl(219, 51%, 34%)
HSVhsv(219, 67%, 51%)
CMYKcmyk(67.4%, 44.2%, 0%, 49.4%)
CIE-LABlab(31.14, 8.69, -35.51)
CIE-LCHlch(31.14, 36.56, 283.76°)
OKLaboklab(40.92% -0.0143 -0.1013)
OKLCHoklch(40.92% 0.102 262)
XYZxyz(7.2333, 6.7113, 21.6788)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4881 #81632A
analogous
#2A7381 #2A4881 #372A81
triadic
#2A4881 #812A48 #48812A
tetradic
#2A4881 #812A73 #81632A #2A8137
square
#2A4881 #812A73 #81632A #2A8137
split-complementary
#2A4881 #81372A #73812A
monochromatic
#0C1425 #1B2E53 #2A4881 #3962AF #5C82CA

Accessibility & contrast

On white

8.97
#2A4881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A4881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4881
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4881#FFFFFF#000000##FFFFFF
##2A48811.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4E83
Deuteranopia (green-blind)
#204680
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4881;
/* rgb */ color: rgb(42, 72, 129);
/* oklch */ color: oklch(40.9% 0.102 262.0);
Tailwind
colors: {
  custom: {
    50: '#6d7aa6',
    500: '#2a4881',
    950: '#000000',
  },
}
SCSS
$custom: #2a4881;
$custom-light: #6d7aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4881",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 129
  },
  "hsl": {
    "h": 219.31,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40918,
    "c": 0.1023,
    "h": 262
  },
  "luminance": 0.06712
}

Semantic roles & 50–950 ramp

primary
#2A4881
secondary
#AF9157
accent
#AA4DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4881

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

Preview Lab → · Contrast checker → · Palette generator →

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