#342AA2#342AA2

#342AA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.183 H 277.2°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#342AA2
RGBrgb(52, 42, 162)
HSLhsl(245, 59%, 40%)
HSVhsv(245, 74%, 64%)
CMYKcmyk(67.9%, 74.1%, 0%, 36.5%)
CIE-LABlab(26.72, 41.76, -62.93)
CIE-LCHlch(26.72, 75.52, 303.57°)
OKLaboklab(38.63% 0.0229 -0.1818)
OKLCHoklch(38.63% 0.183 277.2)
XYZxyz(8.7636, 4.9939, 34.6775)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA2 #98A22A
analogous
#2A5CA2 #342AA2 #702AA2
triadic
#342AA2 #A2342A #2AA234
tetradic
#342AA2 #A22A5C #98A22A #2AA270
square
#342AA2 #A22A5C #98A22A #2AA270
split-complementary
#342AA2 #A2702A #5CA22A
monochromatic
#151141 #241D71 #342AA2 #493DCD #766DD9

Accessibility & contrast

On white

10.51
#342AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#342AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AA2
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA2#FFFFFF#000000##FFFFFF
##342AA21.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342aa2;
/* rgb */ color: rgb(52, 42, 162);
/* oklch */ color: oklch(38.6% 0.183 277.2);
Tailwind
colors: {
  custom: {
    50: '#7b65bf',
    500: '#342aa2',
    950: '#000000',
  },
}
SCSS
$custom: #342aa2;
$custom-light: #7b65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa2",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 245,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38626,
    "c": 0.18323,
    "h": 277.2
  },
  "luminance": 0.04995
}

Semantic roles & 50–950 ramp

primary
#342AA2
secondary
#B9C068
accent
#E246D5
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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