#2A4C96#2A4C96

#2A4C96 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.3% C 0.128 H 263.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2A4C96
RGBrgb(42, 76, 150)
HSLhsl(221, 56%, 38%)
HSVhsv(221, 72%, 59%)
CMYKcmyk(72%, 49.3%, 0%, 41.2%)
CIE-LABlab(33.69, 14.05, -44.30)
CIE-LCHlch(33.69, 46.48, 287.60°)
OKLaboklab(43.32% -0.0146 -0.1271)
OKLCHoklch(43.32% 0.128 263.4)
XYZxyz(9.0424, 7.8622, 29.8893)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C96 #96742A
analogous
#2A8296 #2A4C96 #3E2A96
triadic
#2A4C96 #962A4C #4C962A
tetradic
#2A4C96 #962A82 #96742A #2A963E
square
#2A4C96 #962A82 #96742A #2A963E
split-complementary
#2A4C96 #963E2A #82962A
monochromatic
#0F1C36 #1D3466 #2A4C96 #3764C6 #6689D4

Accessibility & contrast

On white

8.16
#2A4C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A4C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C96
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C96#FFFFFF#000000##FFFFFF
##2A4C961.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235499
Deuteranopia (green-blind)
#044B94
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4c96;
/* rgb */ color: rgb(42, 76, 150);
/* oklch */ color: oklch(43.3% 0.128 263.4);
Tailwind
colors: {
  custom: {
    50: '#727db5',
    500: '#2a4c96',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c96;
$custom-light: #727db5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c96",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 150
  },
  "hsl": {
    "h": 221.111,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4332,
    "c": 0.12793,
    "h": 263.4
  },
  "luminance": 0.07863
}

Semantic roles & 50–950 ramp

primary
#2A4C96
secondary
#BA9E61
accent
#B048E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4C96

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

Preview Lab → · Contrast checker → · Palette generator →

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