#2A4A96#2A4A96

#2A4A96 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.9% C 0.131 H 264.4°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2A4A96
RGBrgb(42, 74, 150)
HSLhsl(222, 56%, 38%)
HSVhsv(222, 72%, 59%)
CMYKcmyk(72%, 50.7%, 0%, 41.2%)
CIE-LABlab(33.12, 15.40, -45.23)
CIE-LCHlch(33.12, 47.78, 288.80°)
OKLaboklab(42.88% -0.0128 -0.1299)
OKLCHoklch(42.88% 0.131 264.4)
XYZxyz(8.9067, 7.5909, 29.8440)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A96 #96762A
analogous
#2A8096 #2A4A96 #402A96
triadic
#2A4A96 #962A4A #4A962A
tetradic
#2A4A96 #962A80 #96762A #2A9640
square
#2A4A96 #962A80 #96762A #2A9640
split-complementary
#2A4A96 #96402A #80962A
monochromatic
#0F1B36 #1D3266 #2A4A96 #3762C6 #6687D4

Accessibility & contrast

On white

8.34
#2A4A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2A4A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A96
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A96#FFFFFF#000000##FFFFFF
##2A4A961.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5399
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4a96;
/* rgb */ color: rgb(42, 74, 150);
/* oklch */ color: oklch(42.9% 0.131 264.4);
Tailwind
colors: {
  custom: {
    50: '#727cb5',
    500: '#2a4a96',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a96;
$custom-light: #727cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a96",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 150
  },
  "hsl": {
    "h": 222.222,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42879,
    "c": 0.1305,
    "h": 264.4
  },
  "luminance": 0.07592
}

Semantic roles & 50–950 ramp

primary
#2A4A96
secondary
#BAA061
accent
#B348E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4A96

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

Preview Lab → · Contrast checker → · Palette generator →

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