#342CCC#342CCC

#342CCC is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.4% C 0.232 H 273.2°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#342CCC
RGBrgb(52, 44, 204)
HSLhsl(243, 65%, 49%)
HSVhsv(243, 78%, 80%)
CMYKcmyk(74.5%, 78.4%, 0%, 20%)
CIE-LABlab(31.55, 54.03, -79.90)
CIE-LCHlch(31.55, 96.46, 304.07°)
OKLaboklab(43.35% 0.0128 -0.2312)
OKLCHoklch(43.35% 0.232 273.2)
XYZxyz(13.2123, 6.8897, 57.7486)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CCC #C4CC2C
analogous
#2C74CC #342CCC #842CCC
triadic
#342CCC #CC342C #2CCC34
tetradic
#342CCC #CC2C74 #C4CC2C #2CCC84
square
#342CCC #CC2C74 #C4CC2C #2CCC84
split-complementary
#342CCC #CC842C #74CC2C
monochromatic
#1A1667 #27219A #342CCC #605ADB #918CE6

Accessibility & contrast

On white

8.83
#342CCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#342CCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CCC
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CCC#FFFFFF#000000##FFFFFF
##342CCC1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052D0
Deuteranopia (green-blind)
#0042C9
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #342ccc;
/* rgb */ color: rgb(52, 44, 204);
/* oklch */ color: oklch(43.4% 0.232 273.2);
Tailwind
colors: {
  custom: {
    50: '#8469dd',
    500: '#342ccc',
    950: '#000000',
  },
}
SCSS
$custom: #342ccc;
$custom-light: #8469dd;
$custom-dark: #000000;
JSON
{
  "hex": "#342ccc",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 204
  },
  "hsl": {
    "h": 243,
    "s": 64.516,
    "l": 48.627
  },
  "oklch": {
    "l": 0.43352,
    "c": 0.23154,
    "h": 273.2
  },
  "luminance": 0.06891
}

Semantic roles & 50–950 ramp

primary
#342CCC
secondary
#CCD083
accent
#E840DF
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #342CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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