#342AC5#342AC5

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

Color values

HEX#342AC5
RGBrgb(52, 42, 197)
HSLhsl(244, 65%, 47%)
HSVhsv(244, 79%, 77%)
CMYKcmyk(73.6%, 78.7%, 0%, 22.7%)
CIE-LABlab(30.44, 52.87, -77.66)
CIE-LCHlch(30.44, 93.94, 304.25°)
OKLaboklab(42.35% 0.0151 -0.2246)
OKLCHoklch(42.35% 0.225 273.9)
XYZxyz(12.3188, 6.4160, 53.4017)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AC5 #BBC52A
analogous
#2A6EC5 #342AC5 #822AC5
triadic
#342AC5 #C5342A #2AC534
tetradic
#342AC5 #C52A6E #BBC52A #2AC582
square
#342AC5 #C52A6E #BBC52A #2AC582
split-complementary
#342AC5 #C5822A #6EC52A
monochromatic
#191460 #271F93 #342AC5 #5B52DA #8B85E5

Accessibility & contrast

On white

9.20
#342AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342AC5
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AC5#FFFFFF#000000##FFFFFF
##342AC51.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC9
Deuteranopia (green-blind)
#0040C2
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342ac5;
/* rgb */ color: rgb(52, 42, 197);
/* oklch */ color: oklch(42.3% 0.225 273.9);
Tailwind
colors: {
  custom: {
    50: '#8367d8',
    500: '#342ac5',
    950: '#000000',
  },
}
SCSS
$custom: #342ac5;
$custom-light: #8367d8;
$custom-dark: #000000;
JSON
{
  "hex": "#342ac5",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 243.871,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42346,
    "c": 0.22515,
    "h": 273.9
  },
  "luminance": 0.06417
}

Semantic roles & 50–950 ramp

primary
#342AC5
secondary
#C9CE7D
accent
#E840DD
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #342AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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