#2A5293#2A5293

#2A5293 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.5% C 0.116 H 259.6°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2A5293
RGBrgb(42, 82, 147)
HSLhsl(217, 56%, 37%)
HSVhsv(217, 71%, 58%)
CMYKcmyk(71.4%, 44.2%, 0%, 42.4%)
CIE-LABlab(35.27, 8.90, -39.96)
CIE-LCHlch(35.27, 40.94, 282.56°)
OKLaboklab(44.47% -0.0209 -0.1142)
OKLCHoklch(44.47% 0.116 259.6)
XYZxyz(9.2367, 8.6324, 28.7775)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5293 #936B2A
analogous
#2A8793 #2A5293 #372A93
triadic
#2A5293 #932A52 #52932A
tetradic
#2A5293 #932A87 #936B2A #2A9337
square
#2A5293 #932A87 #936B2A #2A9337
split-complementary
#2A5293 #93372A #87932A
monochromatic
#0F1D34 #1C3763 #2A5293 #386DC3 #658FD3

Accessibility & contrast

On white

7.70
#2A5293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2A5293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5293
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5293#FFFFFF#000000##FFFFFF
##2A52931.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335896
Deuteranopia (green-blind)
#204E92
Tritanopia (blue-blind)
#00616B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5293;
/* rgb */ color: rgb(42, 82, 147);
/* oklch */ color: oklch(44.5% 0.116 259.6);
Tailwind
colors: {
  custom: {
    50: '#7182b3',
    500: '#2a5293',
    950: '#000000',
  },
}
SCSS
$custom: #2a5293;
$custom-light: #7182b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5293",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 147
  },
  "hsl": {
    "h": 217.143,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44467,
    "c": 0.1161,
    "h": 259.6
  },
  "luminance": 0.08633
}

Semantic roles & 50–950 ramp

primary
#2A5293
secondary
#B99760
accent
#A649DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #2A5293

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

Preview Lab → · Contrast checker → · Palette generator →

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