#2A5196#2A5196

#2A5196 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.4% C 0.122 H 260.9°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2A5196
RGBrgb(42, 81, 150)
HSLhsl(218, 56%, 38%)
HSVhsv(218, 72%, 59%)
CMYKcmyk(72%, 46%, 0%, 41.2%)
CIE-LABlab(35.16, 10.71, -41.95)
CIE-LCHlch(35.16, 43.30, 284.33°)
OKLaboklab(44.45% -0.0193 -0.1201)
OKLCHoklch(44.45% 0.122 260.9)
XYZxyz(9.4003, 8.5781, 30.0086)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5196 #966F2A
analogous
#2A8796 #2A5196 #392A96
triadic
#2A5196 #962A51 #51962A
tetradic
#2A5196 #962A87 #966F2A #2A9639
square
#2A5196 #962A87 #966F2A #2A9639
split-complementary
#2A5196 #96392A #87962A
monochromatic
#0F1D36 #1D3766 #2A5196 #376BC6 #668ED4

Accessibility & contrast

On white

7.73
#2A5196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2A5196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5196
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5196#FFFFFF#000000##FFFFFF
##2A51961.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5899
Deuteranopia (green-blind)
#194E95
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5196;
/* rgb */ color: rgb(42, 81, 150);
/* oklch */ color: oklch(44.4% 0.122 260.9);
Tailwind
colors: {
  custom: {
    50: '#7181b5',
    500: '#2a5196',
    950: '#000000',
  },
}
SCSS
$custom: #2a5196;
$custom-light: #7181b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5196",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 150
  },
  "hsl": {
    "h": 218.333,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44445,
    "c": 0.12162,
    "h": 260.9
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#2A5196
secondary
#BA9A61
accent
#A948E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5196

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

Preview Lab → · Contrast checker → · Palette generator →

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