#2A5494#2A5494

#2A5494 is a dark, moderate blue. Relative luminance 0.090; OKLCH L 45.0% C 0.115 H 258.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2A5494
RGBrgb(42, 84, 148)
HSLhsl(216, 56%, 37%)
HSVhsv(216, 72%, 58%)
CMYKcmyk(71.6%, 43.2%, 0%, 42%)
CIE-LABlab(35.93, 7.96, -39.51)
CIE-LCHlch(35.93, 40.30, 281.40°)
OKLaboklab(45% -0.0226 -0.1129)
OKLCHoklch(45% 0.115 258.7)
XYZxyz(9.4685, 8.9700, 29.2436)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5494 #946A2A
analogous
#2A8994 #2A5494 #352A94
triadic
#2A5494 #942A54 #54942A
tetradic
#2A5494 #942A89 #946A2A #2A9435
square
#2A5494 #942A89 #946A2A #2A9435
split-complementary
#2A5494 #94352A #89942A
monochromatic
#0F1E35 #1C3964 #2A5494 #386FC4 #6591D3

Accessibility & contrast

On white

7.52
#2A5494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2A5494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5494
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5494#FFFFFF#000000##FFFFFF
##2A54941.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355A96
Deuteranopia (green-blind)
#245093
Tritanopia (blue-blind)
#00636C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5494;
/* rgb */ color: rgb(42, 84, 148);
/* oklch */ color: oklch(45.0% 0.115 258.7);
Tailwind
colors: {
  custom: {
    50: '#7183b4',
    500: '#2a5494',
    950: '#000000',
  },
}
SCSS
$custom: #2a5494;
$custom-light: #7183b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5494",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 148
  },
  "hsl": {
    "h": 216.226,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44997,
    "c": 0.1151,
    "h": 258.7
  },
  "luminance": 0.08971
}

Semantic roles & 50–950 ramp

primary
#2A5494
secondary
#B99660
accent
#A449DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5494

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

Preview Lab → · Contrast checker → · Palette generator →

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