#2A5294#2A5294

#2A5294 is a dark, moderate blue. Relative luminance 0.087; OKLCH L 44.5% C 0.118 H 259.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2A5294
RGBrgb(42, 82, 148)
HSLhsl(217, 56%, 37%)
HSVhsv(217, 72%, 58%)
CMYKcmyk(71.6%, 44.6%, 0%, 42%)
CIE-LABlab(35.33, 9.28, -40.47)
CIE-LCHlch(35.33, 41.52, 282.92°)
OKLaboklab(44.54% -0.0207 -0.1157)
OKLCHoklch(44.54% 0.118 259.9)
XYZxyz(9.3155, 8.6640, 29.1926)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5294 #946C2A
analogous
#2A8794 #2A5294 #372A94
triadic
#2A5294 #942A52 #52942A
tetradic
#2A5294 #942A87 #946C2A #2A9437
square
#2A5294 #942A87 #946C2A #2A9437
split-complementary
#2A5294 #94372A #87942A
monochromatic
#0F1D35 #1C3864 #2A5294 #386CC4 #658FD3

Accessibility & contrast

On white

7.68
#2A5294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5294
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5294#FFFFFF#000000##FFFFFF
##2A52941.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325897
Deuteranopia (green-blind)
#1F4F93
Tritanopia (blue-blind)
#00616B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5294;
/* rgb */ color: rgb(42, 82, 148);
/* oklch */ color: oklch(44.5% 0.118 259.9);
Tailwind
colors: {
  custom: {
    50: '#7182b4',
    500: '#2a5294',
    950: '#000000',
  },
}
SCSS
$custom: #2a5294;
$custom-light: #7182b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5294",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 148
  },
  "hsl": {
    "h": 217.358,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44535,
    "c": 0.11753,
    "h": 259.9
  },
  "luminance": 0.08665
}

Semantic roles & 50–950 ramp

primary
#2A5294
secondary
#B99860
accent
#A649DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5294

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

Preview Lab → · Contrast checker → · Palette generator →

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