#2A5396#2A5396

#2A5396 is a dark, moderate blue. Relative luminance 0.089; OKLCH L 44.9% C 0.119 H 259.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2A5396
RGBrgb(42, 83, 150)
HSLhsl(217, 56%, 38%)
HSVhsv(217, 72%, 59%)
CMYKcmyk(72%, 44.7%, 0%, 41.2%)
CIE-LABlab(35.75, 9.39, -41.00)
CIE-LCHlch(35.75, 42.06, 282.90°)
OKLaboklab(44.9% -0.0212 -0.1173)
OKLCHoklch(44.9% 0.119 259.7)
XYZxyz(9.5511, 8.8798, 30.0589)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5396 #966D2A
analogous
#2A8996 #2A5396 #372A96
triadic
#2A5396 #962A53 #53962A
tetradic
#2A5396 #962A89 #966D2A #2A9637
square
#2A5396 #962A89 #966D2A #2A9637
split-complementary
#2A5396 #96372A #89962A
monochromatic
#0F1E36 #1D3966 #2A5396 #376DC6 #6690D4

Accessibility & contrast

On white

7.56
#2A5396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A5396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5396
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5396#FFFFFF#000000##FFFFFF
##2A53961.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325999
Deuteranopia (green-blind)
#1F4F95
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5396;
/* rgb */ color: rgb(42, 83, 150);
/* oklch */ color: oklch(44.9% 0.119 259.7);
Tailwind
colors: {
  custom: {
    50: '#7182b5',
    500: '#2a5396',
    950: '#000000',
  },
}
SCSS
$custom: #2a5396;
$custom-light: #7182b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5396",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 150
  },
  "hsl": {
    "h": 217.222,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44902,
    "c": 0.11917,
    "h": 259.7
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#2A5396
secondary
#BA9961
accent
#A648E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5396

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

Preview Lab → · Contrast checker → · Palette generator →

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