#342A96#342A96

#342A96 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.168 H 278.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#342A96
RGBrgb(52, 42, 150)
HSLhsl(246, 56%, 38%)
HSVhsv(246, 72%, 59%)
CMYKcmyk(65.3%, 72%, 0%, 41.2%)
CIE-LABlab(25.53, 37.80, -57.56)
CIE-LCHlch(25.53, 68.87, 303.29°)
OKLaboklab(37.42% 0.0253 -0.1661)
OKLCHoklch(37.42% 0.168 278.6)
XYZxyz(7.7474, 4.5874, 29.3254)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A96 #8C962A
analogous
#2A5696 #342A96 #6A2A96
triadic
#342A96 #96342A #2A9634
tetradic
#342A96 #962A56 #8C962A #2A966A
square
#342A96 #962A56 #8C962A #2A966A
split-complementary
#342A96 #966A2A #56962A
monochromatic
#130F36 #231D66 #342A96 #4537C6 #7066D4

Accessibility & contrast

On white

10.95
#342A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#342A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A96
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A96#FFFFFF#000000##FFFFFF
##342A961.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342a96;
/* rgb */ color: rgb(52, 42, 150);
/* oklch */ color: oklch(37.4% 0.168 278.6);
Tailwind
colors: {
  custom: {
    50: '#7965b6',
    500: '#342a96',
    950: '#000000',
  },
}
SCSS
$custom: #342a96;
$custom-light: #7965b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342a96",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 245.556,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37417,
    "c": 0.16803,
    "h": 278.6
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#342A96
secondary
#B2BA61
accent
#E048D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342A96

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

Preview Lab → · Contrast checker → · Palette generator →

#342A96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva