#2A4F96#2A4F96

#2A4F96 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.0% C 0.124 H 261.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2A4F96
RGBrgb(42, 79, 150)
HSLhsl(219, 56%, 38%)
HSVhsv(219, 72%, 59%)
CMYKcmyk(72%, 47.3%, 0%, 41.2%)
CIE-LABlab(34.57, 12.05, -42.89)
CIE-LCHlch(34.57, 44.55, 285.69°)
OKLaboklab(43.99% -0.0174 -0.1229)
OKLCHoklch(43.99% 0.124 261.9)
XYZxyz(9.2539, 8.2852, 29.9598)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F96 #96712A
analogous
#2A8596 #2A4F96 #3B2A96
triadic
#2A4F96 #962A4F #4F962A
tetradic
#2A4F96 #962A85 #96712A #2A963B
square
#2A4F96 #962A85 #96712A #2A963B
split-complementary
#2A4F96 #963B2A #85962A
monochromatic
#0F1D36 #1D3666 #2A4F96 #3768C6 #668CD4

Accessibility & contrast

On white

7.90
#2A4F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2A4F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F96
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F96#FFFFFF#000000##FFFFFF
##2A4F961.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5799
Deuteranopia (green-blind)
#124D95
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4f96;
/* rgb */ color: rgb(42, 79, 150);
/* oklch */ color: oklch(44.0% 0.124 261.9);
Tailwind
colors: {
  custom: {
    50: '#727fb5',
    500: '#2a4f96',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f96;
$custom-light: #727fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f96",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 150
  },
  "hsl": {
    "h": 219.444,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43992,
    "c": 0.12413,
    "h": 261.9
  },
  "luminance": 0.08286
}

Semantic roles & 50–950 ramp

primary
#2A4F96
secondary
#BA9C61
accent
#AC48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4F96

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

Preview Lab → · Contrast checker → · Palette generator →

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