#342CC1#342CC1

#342CC1 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.2% C 0.219 H 274.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#342CC1
RGBrgb(52, 44, 193)
HSLhsl(243, 63%, 46%)
HSVhsv(243, 77%, 76%)
CMYKcmyk(73.1%, 77.2%, 0%, 24.3%)
CIE-LABlab(30.35, 50.61, -75.45)
CIE-LCHlch(30.35, 90.85, 303.85°)
OKLaboklab(42.16% 0.0153 -0.2183)
OKLCHoklch(42.16% 0.219 274)
XYZxyz(11.9393, 6.3805, 51.0441)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CC1 #B9C12C
analogous
#2C6FC1 #342CC1 #7E2CC1
triadic
#342CC1 #C1342C #2CC134
tetradic
#342CC1 #C12C6F #B9C12C #2CC17E
square
#342CC1 #C12C6F #B9C12C #2CC17E
split-complementary
#342CC1 #C17E2C #6FC12C
monochromatic
#19155D #27218F #342CC1 #5A53D8 #8984E3

Accessibility & contrast

On white

9.23
#342CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#342CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CC1
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CC1#FFFFFF#000000##FFFFFF
##342CC11.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC5
Deuteranopia (green-blind)
#0040BE
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #342cc1;
/* rgb */ color: rgb(52, 44, 193);
/* oklch */ color: oklch(42.2% 0.219 274.0);
Tailwind
colors: {
  custom: {
    50: '#8268d5',
    500: '#342cc1',
    950: '#000000',
  },
}
SCSS
$custom: #342cc1;
$custom-light: #8268d5;
$custom-dark: #000000;
JSON
{
  "hex": "#342cc1",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 193
  },
  "hsl": {
    "h": 243.221,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.21879,
    "h": 274
  },
  "luminance": 0.06382
}

Semantic roles & 50–950 ramp

primary
#342CC1
secondary
#C8CC7D
accent
#E642DD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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