#2A4581#2A4581

#2A4581 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.2% C 0.106 H 264.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2A4581
RGBrgb(42, 69, 129)
HSLhsl(221, 51%, 34%)
HSVhsv(221, 67%, 51%)
CMYKcmyk(67.4%, 46.5%, 0%, 49.4%)
CIE-LABlab(30.24, 10.72, -36.95)
CIE-LCHlch(30.24, 38.48, 286.18°)
OKLaboklab(40.22% -0.0111 -0.1056)
OKLCHoklch(40.22% 0.106 264)
XYZxyz(7.0440, 6.3328, 21.6158)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4581 #81662A
analogous
#2A7081 #2A4581 #3A2A81
triadic
#2A4581 #812A45 #45812A
tetradic
#2A4581 #812A70 #81662A #2A813A
square
#2A4581 #812A70 #81662A #2A813A
split-complementary
#2A4581 #813A2A #70812A
monochromatic
#0C1425 #1B2C53 #2A4581 #395EAF #5C7ECA

Accessibility & contrast

On white

9.26
#2A4581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A4581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4581
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4581#FFFFFF#000000##FFFFFF
##2A45811.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284B83
Deuteranopia (green-blind)
#194380
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4581;
/* rgb */ color: rgb(42, 69, 129);
/* oklch */ color: oklch(40.2% 0.106 264.0);
Tailwind
colors: {
  custom: {
    50: '#6d78a6',
    500: '#2a4581',
    950: '#000000',
  },
}
SCSS
$custom: #2a4581;
$custom-light: #6d78a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4581",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 129
  },
  "hsl": {
    "h": 221.379,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40223,
    "c": 0.10617,
    "h": 264
  },
  "luminance": 0.06333
}

Semantic roles & 50–950 ramp

primary
#2A4581
secondary
#AF9457
accent
#AF4DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4581

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

Preview Lab → · Contrast checker → · Palette generator →

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