#342ACC#342ACC

#342ACC is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 43.1% C 0.233 H 273.3°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#342ACC
RGBrgb(52, 42, 204)
HSLhsl(244, 66%, 48%)
HSVhsv(244, 79%, 80%)
CMYKcmyk(74.5%, 79.4%, 0%, 20%)
CIE-LABlab(31.22, 55.01, -80.46)
CIE-LCHlch(31.22, 97.47, 304.36°)
OKLaboklab(43.12% 0.0135 -0.2328)
OKLCHoklch(43.12% 0.233 273.3)
XYZxyz(13.1396, 6.7443, 57.7243)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342ACC #C2CC2A
analogous
#2A71CC #342ACC #852ACC
triadic
#342ACC #CC342A #2ACC34
tetradic
#342ACC #CC2A71 #C2CC2A #2ACC85
square
#342ACC #CC2A71 #C2CC2A #2ACC85
split-complementary
#342ACC #CC852A #71CC2A
monochromatic
#1A1566 #272099 #342ACC #5F57DC #8F8AE7

Accessibility & contrast

On white

8.94
#342ACC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#342ACC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342ACC
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342ACC#FFFFFF#000000##FFFFFF
##342ACC1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051D0
Deuteranopia (green-blind)
#0042C9
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #342acc;
/* rgb */ color: rgb(52, 42, 204);
/* oklch */ color: oklch(43.1% 0.233 273.3);
Tailwind
colors: {
  custom: {
    50: '#8468dd',
    500: '#342acc',
    950: '#000000',
  },
}
SCSS
$custom: #342acc;
$custom-light: #8468dd;
$custom-dark: #000000;
JSON
{
  "hex": "#342acc",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 204
  },
  "hsl": {
    "h": 243.704,
    "s": 65.854,
    "l": 48.235
  },
  "oklch": {
    "l": 0.43117,
    "c": 0.23317,
    "h": 273.3
  },
  "luminance": 0.06746
}

Semantic roles & 50–950 ramp

primary
#342ACC
secondary
#CCD181
accent
#E93FDE
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #342ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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