#2A4096#2A4096

#2A4096 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.143 H 268.4°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2A4096
RGBrgb(42, 64, 150)
HSLhsl(228, 56%, 38%)
HSVhsv(228, 72%, 59%)
CMYKcmyk(72%, 57.3%, 0%, 41.2%)
CIE-LABlab(30.30, 22.17, -49.78)
CIE-LCHlch(30.30, 54.50, 294.00°)
OKLaboklab(40.75% -0.004 -0.1434)
OKLCHoklch(40.75% 0.143 268.4)
XYZxyz(8.2914, 6.3602, 29.6389)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4096 #96802A
analogous
#2A7696 #2A4096 #4A2A96
triadic
#2A4096 #962A40 #40962A
tetradic
#2A4096 #962A76 #96802A #2A964A
square
#2A4096 #962A76 #96802A #2A964A
split-complementary
#2A4096 #964A2A #76962A
monochromatic
#0F1736 #1D2C66 #2A4096 #3754C6 #667DD4

Accessibility & contrast

On white

9.24
#2A4096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A4096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4096
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4096#FFFFFF#000000##FFFFFF
##2A40961.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4096;
/* rgb */ color: rgb(42, 64, 150);
/* oklch */ color: oklch(40.8% 0.143 268.4);
Tailwind
colors: {
  custom: {
    50: '#7274b6',
    500: '#2a4096',
    950: '#000000',
  },
}
SCSS
$custom: #2a4096;
$custom-light: #7274b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4096",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 150
  },
  "hsl": {
    "h": 227.778,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40752,
    "c": 0.14347,
    "h": 268.4
  },
  "luminance": 0.06361
}

Semantic roles & 50–950 ramp

primary
#2A4096
secondary
#BAA861
accent
#C148E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4096

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

Preview Lab → · Contrast checker → · Palette generator →

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