#2A5291#2A5291

#2A5291 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.3% C 0.113 H 259.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2A5291
RGBrgb(42, 82, 145)
HSLhsl(217, 55%, 37%)
HSVhsv(217, 71%, 57%)
CMYKcmyk(71%, 43.4%, 0%, 43.1%)
CIE-LABlab(35.14, 8.13, -38.94)
CIE-LCHlch(35.14, 39.78, 281.80°)
OKLaboklab(44.33% -0.0213 -0.1112)
OKLCHoklch(44.33% 0.113 259.2)
XYZxyz(9.0811, 8.5702, 27.9582)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5291 #91692A
analogous
#2A8691 #2A5291 #362A91
triadic
#2A5291 #912A52 #52912A
tetradic
#2A5291 #912A86 #91692A #2A9136
square
#2A5291 #912A86 #91692A #2A9136
split-complementary
#2A5291 #91362A #86912A
monochromatic
#0F1C32 #1C3762 #2A5291 #386DC0 #638ED2

Accessibility & contrast

On white

7.74
#2A5291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A5291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5291
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5291#FFFFFF#000000##FFFFFF
##2A52911.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345893
Deuteranopia (green-blind)
#234E90
Tritanopia (blue-blind)
#00616A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5291;
/* rgb */ color: rgb(42, 82, 145);
/* oklch */ color: oklch(44.3% 0.113 259.2);
Tailwind
colors: {
  custom: {
    50: '#7082b2',
    500: '#2a5291',
    950: '#000000',
  },
}
SCSS
$custom: #2a5291;
$custom-light: #7082b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5291",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 216.699,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44331,
    "c": 0.11325,
    "h": 259.2
  },
  "luminance": 0.08571
}

Semantic roles & 50–950 ramp

primary
#2A5291
secondary
#B8955F
accent
#A549DE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #2A5291

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

Preview Lab → · Contrast checker → · Palette generator →

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