#2A4381#2A4381

#2A4381 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.8% C 0.109 H 265.3°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2A4381
RGBrgb(42, 67, 129)
HSLhsl(223, 51%, 34%)
HSVhsv(223, 67%, 51%)
CMYKcmyk(67.4%, 48.1%, 0%, 49.4%)
CIE-LABlab(29.64, 12.09, -37.91)
CIE-LCHlch(29.64, 39.79, 287.68°)
OKLaboklab(39.77% -0.009 -0.1084)
OKLCHoklch(39.77% 0.109 265.3)
XYZxyz(6.9231, 6.0909, 21.5754)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4381 #81682A
analogous
#2A6E81 #2A4381 #3C2A81
triadic
#2A4381 #812A43 #43812A
tetradic
#2A4381 #812A6E #81682A #2A813C
square
#2A4381 #812A6E #81682A #2A813C
split-complementary
#2A4381 #813C2A #6E812A
monochromatic
#0C1325 #1B2B53 #2A4381 #395BAF #5C7BCA

Accessibility & contrast

On white

9.47
#2A4381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A4381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4381
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4381#FFFFFF#000000##FFFFFF
##2A43811.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244A83
Deuteranopia (green-blind)
#144280
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4381;
/* rgb */ color: rgb(42, 67, 129);
/* oklch */ color: oklch(39.8% 0.109 265.3);
Tailwind
colors: {
  custom: {
    50: '#6e76a6',
    500: '#2a4381',
    950: '#000000',
  },
}
SCSS
$custom: #2a4381;
$custom-light: #6e76a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4381",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 129
  },
  "hsl": {
    "h": 222.759,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39766,
    "c": 0.1088,
    "h": 265.3
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#2A4381
secondary
#AF9657
accent
#B24DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4381

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

Preview Lab → · Contrast checker → · Palette generator →

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