#2A3496#2A3496

#2A3496 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.159 H 272.0°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2A3496
RGBrgb(42, 52, 150)
HSLhsl(234, 56%, 38%)
HSVhsv(234, 72%, 59%)
CMYKcmyk(72%, 65.3%, 0%, 41.2%)
CIE-LABlab(27.16, 30.20, -54.91)
CIE-LCHlch(27.16, 62.67, 298.81°)
OKLaboklab(38.42% 0.0055 -0.1586)
OKLCHoklch(38.42% 0.159 272)
XYZxyz(7.6860, 5.1495, 29.4371)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3496 #968C2A
analogous
#2A6A96 #2A3496 #562A96
triadic
#2A3496 #962A34 #34962A
tetradic
#2A3496 #962A6A #968C2A #2A9656
square
#2A3496 #962A6A #968C2A #2A9656
split-complementary
#2A3496 #96562A #6A962A
monochromatic
#0F1336 #1D2366 #2A3496 #3745C6 #6670D4

Accessibility & contrast

On white

10.34
#2A3496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A3496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3496
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3496#FFFFFF#000000##FFFFFF
##2A34961.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3496;
/* rgb */ color: rgb(42, 52, 150);
/* oklch */ color: oklch(38.4% 0.159 272.0);
Tailwind
colors: {
  custom: {
    50: '#736bb6',
    500: '#2a3496',
    950: '#000000',
  },
}
SCSS
$custom: #2a3496;
$custom-light: #736bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3496",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 234.444,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38417,
    "c": 0.15871,
    "h": 272
  },
  "luminance": 0.0515
}

Semantic roles & 50–950 ramp

primary
#2A3496
secondary
#BAB261
accent
#D248E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3496

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

Preview Lab → · Contrast checker → · Palette generator →

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