#342DC1#342DC1

#342DC1 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.3% C 0.218 H 273.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#342DC1
RGBrgb(52, 45, 193)
HSLhsl(243, 62%, 47%)
HSVhsv(243, 77%, 76%)
CMYKcmyk(73.1%, 76.7%, 0%, 24.3%)
CIE-LABlab(30.53, 50.09, -75.15)
CIE-LCHlch(30.53, 90.31, 303.69°)
OKLaboklab(42.29% 0.0148 -0.2174)
OKLCHoklch(42.29% 0.218 273.9)
XYZxyz(11.9770, 6.4559, 51.0566)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DC1 #BAC12D
analogous
#2D70C1 #342DC1 #7E2DC1
triadic
#342DC1 #C1342D #2DC134
tetradic
#342DC1 #C12D70 #BAC12D #2DC17E
square
#342DC1 #C12D70 #BAC12D #2DC17E
split-complementary
#342DC1 #C17E2D #70C12D
monochromatic
#19165E #27218F #342DC1 #5A54D7 #8A86E3

Accessibility & contrast

On white

9.16
#342DC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#342DC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DC1
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DC1#FFFFFF#000000##FFFFFF
##342DC11.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC5
Deuteranopia (green-blind)
#0041BE
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342dc1;
/* rgb */ color: rgb(52, 45, 193);
/* oklch */ color: oklch(42.3% 0.218 273.9);
Tailwind
colors: {
  custom: {
    50: '#8269d5',
    500: '#342dc1',
    950: '#000000',
  },
}
SCSS
$custom: #342dc1;
$custom-light: #8269d5;
$custom-dark: #000000;
JSON
{
  "hex": "#342dc1",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 242.838,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.42286,
    "c": 0.2179,
    "h": 273.9
  },
  "luminance": 0.06457
}

Semantic roles & 50–950 ramp

primary
#342DC1
secondary
#C8CC7E
accent
#E543DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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