#342AA1#342AA1

#342AA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.182 H 277.3°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#342AA1
RGBrgb(52, 42, 161)
HSLhsl(245, 59%, 40%)
HSVhsv(245, 74%, 63%)
CMYKcmyk(67.7%, 73.9%, 0%, 36.9%)
CIE-LABlab(26.62, 41.43, -62.49)
CIE-LCHlch(26.62, 74.98, 303.54°)
OKLaboklab(38.52% 0.0231 -0.1805)
OKLCHoklch(38.52% 0.182 277.3)
XYZxyz(8.6751, 4.9585, 34.2112)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AA1 #97A12A
analogous
#2A5CA1 #342AA1 #702AA1
triadic
#342AA1 #A1342A #2AA134
tetradic
#342AA1 #A12A5C #97A12A #2AA170
square
#342AA1 #A12A5C #97A12A #2AA170
split-complementary
#342AA1 #A1702A #5CA12A
monochromatic
#151140 #241D70 #342AA1 #483CCC #766DD9

Accessibility & contrast

On white

10.54
#342AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#342AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AA1
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AA1#FFFFFF#000000##FFFFFF
##342AA11.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342aa1;
/* rgb */ color: rgb(52, 42, 161);
/* oklch */ color: oklch(38.5% 0.182 277.3);
Tailwind
colors: {
  custom: {
    50: '#7b65be',
    500: '#342aa1',
    950: '#000000',
  },
}
SCSS
$custom: #342aa1;
$custom-light: #7b65be;
$custom-dark: #000000;
JSON
{
  "hex": "#342aa1",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 245.042,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38524,
    "c": 0.18199,
    "h": 277.3
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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