#342AA4#342AA4

#342AA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.186 H 277.0°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#342AA4
RGBrgb(52, 42, 164)
HSLhsl(245, 59%, 40%)
HSVhsv(245, 74%, 64%)
CMYKcmyk(68.3%, 74.4%, 0%, 35.7%)
CIE-LABlab(26.92, 42.41, -63.81)
CIE-LCHlch(26.92, 76.62, 303.61°)
OKLaboklab(38.83% 0.0225 -0.1844)
OKLCHoklch(38.83% 0.186 277)
XYZxyz(8.9428, 5.0655, 35.6212)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA4 #9AA42A
analogous
#2A5DA4 #342AA4 #712AA4
triadic
#342AA4 #A4342A #2AA434
tetradic
#342AA4 #A42A5D #9AA42A #2AA471
square
#342AA4 #A42A5D #9AA42A #2AA471
split-complementary
#342AA4 #A4712A #5DA42A
monochromatic
#151143 #251E73 #342AA4 #493ECD #776EDA

Accessibility & contrast

On white

10.43
#342AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#342AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AA4
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA4#FFFFFF#000000##FFFFFF
##342AA41.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342aa4;
/* rgb */ color: rgb(52, 42, 164);
/* oklch */ color: oklch(38.8% 0.186 277.0);
Tailwind
colors: {
  custom: {
    50: '#7c66c0',
    500: '#342aa4',
    950: '#000000',
  },
}
SCSS
$custom: #342aa4;
$custom-light: #7c66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa4",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 244.918,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38831,
    "c": 0.18572,
    "h": 277
  },
  "luminance": 0.05066
}

Semantic roles & 50–950 ramp

primary
#342AA4
secondary
#BAC169
accent
#E245D6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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