#342ACD#342ACD

#342ACD is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.2% C 0.234 H 273.2°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#342ACD
RGBrgb(52, 42, 205)
HSLhsl(244, 66%, 48%)
HSVhsv(244, 80%, 80%)
CMYKcmyk(74.6%, 79.5%, 0%, 19.6%)
CIE-LABlab(31.33, 55.31, -80.86)
CIE-LCHlch(31.33, 97.97, 304.38°)
OKLaboklab(43.23% 0.0133 -0.2339)
OKLCHoklch(43.23% 0.234 273.2)
XYZxyz(13.2599, 6.7924, 58.3580)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342ACD #C3CD2A
analogous
#2A71CD #342ACD #852ACD
triadic
#342ACD #CD342A #2ACD34
tetradic
#342ACD #CD2A71 #C3CD2A #2ACD85
square
#342ACD #CD2A71 #C3CD2A #2ACD85
split-complementary
#342ACD #CD852A #71CD2A
monochromatic
#1A1567 #27209A #342ACD #6058DD #908AE7

Accessibility & contrast

On white

8.90
#342ACD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#342ACD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342ACD
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342ACD#FFFFFF#000000##FFFFFF
##342ACD1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051D1
Deuteranopia (green-blind)
#0042CA
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #342acd;
/* rgb */ color: rgb(52, 42, 205);
/* oklch */ color: oklch(43.2% 0.234 273.2);
Tailwind
colors: {
  custom: {
    50: '#8568de',
    500: '#342acd',
    950: '#000000',
  },
}
SCSS
$custom: #342acd;
$custom-light: #8568de;
$custom-dark: #000000;
JSON
{
  "hex": "#342acd",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 205
  },
  "hsl": {
    "h": 243.681,
    "s": 65.992,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43227,
    "c": 0.23431,
    "h": 273.2
  },
  "luminance": 0.06794
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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