#2A4E96#2A4E96

#2A4E96 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.125 H 262.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2A4E96
RGBrgb(42, 78, 150)
HSLhsl(220, 56%, 38%)
HSVhsv(220, 72%, 59%)
CMYKcmyk(72%, 48%, 0%, 41.2%)
CIE-LABlab(34.28, 12.71, -43.36)
CIE-LCHlch(34.28, 45.19, 286.34°)
OKLaboklab(43.77% -0.0165 -0.1243)
OKLCHoklch(43.77% 0.125 262.5)
XYZxyz(9.1823, 8.1421, 29.9359)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E96 #96722A
analogous
#2A8496 #2A4E96 #3C2A96
triadic
#2A4E96 #962A4E #4E962A
tetradic
#2A4E96 #962A84 #96722A #2A963C
square
#2A4E96 #962A84 #96722A #2A963C
split-complementary
#2A4E96 #963C2A #84962A
monochromatic
#0F1C36 #1D3566 #2A4E96 #3767C6 #668BD4

Accessibility & contrast

On white

7.99
#2A4E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2A4E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E96
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E96#FFFFFF#000000##FFFFFF
##2A4E961.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285699
Deuteranopia (green-blind)
#0E4C95
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4e96;
/* rgb */ color: rgb(42, 78, 150);
/* oklch */ color: oklch(43.8% 0.125 262.5);
Tailwind
colors: {
  custom: {
    50: '#727fb5',
    500: '#2a4e96',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e96;
$custom-light: #727fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e96",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 150
  },
  "hsl": {
    "h": 220,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43767,
    "c": 0.12539,
    "h": 262.5
  },
  "luminance": 0.08143
}

Semantic roles & 50–950 ramp

primary
#2A4E96
secondary
#BA9D61
accent
#AD48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4E96

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

Preview Lab → · Contrast checker → · Palette generator →

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