#342CA7#342CA7

#342CA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.187 H 276.3°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#342CA7
RGBrgb(52, 44, 167)
HSLhsl(244, 58%, 41%)
HSVhsv(244, 74%, 65%)
CMYKcmyk(68.9%, 73.7%, 0%, 34.5%)
CIE-LABlab(27.63, 42.26, -64.45)
CIE-LCHlch(27.63, 77.07, 303.25°)
OKLaboklab(39.43% 0.0207 -0.1862)
OKLCHoklch(39.43% 0.187 276.3)
XYZxyz(9.2896, 5.3206, 37.0891)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA7 #9FA72C
analogous
#2C62A7 #342CA7 #722CA7
triadic
#342CA7 #A7342C #2CA734
tetradic
#342CA7 #A72C62 #9FA72C #2CA772
square
#342CA7 #A72C62 #9FA72C #2CA772
split-complementary
#342CA7 #A7722C #62A72C
monochromatic
#161246 #251F77 #342CA7 #4C43CD #7A73DA

Accessibility & contrast

On white

10.17
#342CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#342CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA7
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA7#FFFFFF#000000##FFFFFF
##342CA71.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ca7;
/* rgb */ color: rgb(52, 44, 167);
/* oklch */ color: oklch(39.4% 0.187 276.3);
Tailwind
colors: {
  custom: {
    50: '#7c67c2',
    500: '#342ca7',
    950: '#000000',
  },
}
SCSS
$custom: #342ca7;
$custom-light: #7c67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca7",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 243.902,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39426,
    "c": 0.1874,
    "h": 276.3
  },
  "luminance": 0.05321
}

Semantic roles & 50–950 ramp

primary
#342CA7
secondary
#BCC26D
accent
#E246D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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