#342CCD#342CCD

#342CCD is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.5% C 0.233 H 273.1°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#342CCD
RGBrgb(52, 44, 205)
HSLhsl(243, 65%, 49%)
HSVhsv(243, 79%, 80%)
CMYKcmyk(74.6%, 78.5%, 0%, 19.6%)
CIE-LABlab(31.66, 54.34, -80.30)
CIE-LCHlch(31.66, 96.96, 304.09°)
OKLaboklab(43.46% 0.0126 -0.2323)
OKLCHoklch(43.46% 0.233 273.1)
XYZxyz(13.3326, 6.9378, 58.3822)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CCD #C5CD2C
analogous
#2C75CD #342CCD #852CCD
triadic
#342CCD #CD342C #2CCD34
tetradic
#342CCD #CD2C75 #C5CD2C #2CCD85
square
#342CCD #CD2C75 #C5CD2C #2CCD85
split-complementary
#342CCD #CD852C #75CD2C
monochromatic
#1A1668 #27219B #342CCD #615BDC #918DE7

Accessibility & contrast

On white

8.79
#342CCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#342CCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CCD
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CCD#FFFFFF#000000##FFFFFF
##342CCD1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052D1
Deuteranopia (green-blind)
#0043CA
Tritanopia (blue-blind)
#005E7C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #342ccd;
/* rgb */ color: rgb(52, 44, 205);
/* oklch */ color: oklch(43.5% 0.233 273.1);
Tailwind
colors: {
  custom: {
    50: '#8569de',
    500: '#342ccd',
    950: '#000000',
  },
}
SCSS
$custom: #342ccd;
$custom-light: #8569de;
$custom-dark: #000000;
JSON
{
  "hex": "#342ccd",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 205
  },
  "hsl": {
    "h": 242.981,
    "s": 64.659,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43461,
    "c": 0.23268,
    "h": 273.1
  },
  "luminance": 0.06939
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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