#342EA1#342EA1

#342EA1 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.178 H 276.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#342EA1
RGBrgb(52, 46, 161)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 71%, 63%)
CMYKcmyk(67.7%, 71.4%, 0%, 36.9%)
CIE-LABlab(27.45, 39.10, -61.11)
CIE-LCHlch(27.45, 72.55, 302.61°)
OKLaboklab(39.12% 0.0205 -0.1765)
OKLCHoklch(39.12% 0.178 276.6)
XYZxyz(8.8241, 5.2565, 34.2609)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA1 #9BA12E
analogous
#2E62A1 #342EA1 #6D2EA1
triadic
#342EA1 #A1342E #2EA134
tetradic
#342EA1 #A12E62 #9BA12E #2EA16D
square
#342EA1 #A12E62 #9BA12E #2EA16D
split-complementary
#342EA1 #A16D2E #62A12E
monochromatic
#151342 #252071 #342EA1 #4A43C9 #7873D7

Accessibility & contrast

On white

10.24
#342EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#342EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EA1
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA1#FFFFFF#000000##FFFFFF
##342EA11.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ea1;
/* rgb */ color: rgb(52, 46, 161);
/* oklch */ color: oklch(39.1% 0.178 276.6);
Tailwind
colors: {
  custom: {
    50: '#7b68be',
    500: '#342ea1',
    950: '#000000',
  },
}
SCSS
$custom: #342ea1;
$custom-light: #7b68be;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea1",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 243.13,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39121,
    "c": 0.17769,
    "h": 276.6
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#342EA1
secondary
#BABE6C
accent
#DF49D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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