#2A4281#2A4281

#2A4281 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.5% C 0.110 H 265.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2A4281
RGBrgb(42, 66, 129)
HSLhsl(223, 51%, 34%)
HSVhsv(223, 67%, 51%)
CMYKcmyk(67.4%, 48.8%, 0%, 49.4%)
CIE-LABlab(29.34, 12.77, -38.38)
CIE-LCHlch(29.34, 40.45, 288.40°)
OKLaboklab(39.54% -0.0079 -0.1098)
OKLCHoklch(39.54% 0.11 265.9)
XYZxyz(6.8641, 5.9730, 21.5558)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4281 #81692A
analogous
#2A6D81 #2A4281 #3D2A81
triadic
#2A4281 #812A42 #42812A
tetradic
#2A4281 #812A6D #81692A #2A813D
square
#2A4281 #812A6D #81692A #2A813D
split-complementary
#2A4281 #813D2A #6D812A
monochromatic
#0C1325 #1B2A53 #2A4281 #395AAF #5C7ACA

Accessibility & contrast

On white

9.57
#2A4281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A4281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4281
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4281#FFFFFF#000000##FFFFFF
##2A42811.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224983
Deuteranopia (green-blind)
#104180
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4281;
/* rgb */ color: rgb(42, 66, 129);
/* oklch */ color: oklch(39.5% 0.110 265.9);
Tailwind
colors: {
  custom: {
    50: '#6e75a6',
    500: '#2a4281',
    950: '#000000',
  },
}
SCSS
$custom: #2a4281;
$custom-light: #6e75a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4281",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 223.448,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39539,
    "c": 0.11014,
    "h": 265.9
  },
  "luminance": 0.05974
}

Semantic roles & 50–950 ramp

primary
#2A4281
secondary
#AF9757
accent
#B34DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4281

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

Preview Lab → · Contrast checker → · Palette generator →

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