#342393#342393

#342393 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.172 H 280.3°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#342393
RGBrgb(52, 35, 147)
HSLhsl(249, 62%, 36%)
HSVhsv(249, 76%, 58%)
CMYKcmyk(64.6%, 76.2%, 0%, 42.4%)
CIE-LABlab(23.80, 40.82, -58.56)
CIE-LCHlch(23.80, 71.38, 304.88°)
OKLaboklab(36.1% 0.0308 -0.169)
OKLCHoklch(36.1% 0.172 280.3)
XYZxyz(7.2820, 4.0382, 27.9938)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342393 #829323
analogous
#234A93 #342393 #6C2393
triadic
#342393 #933423 #239334
tetradic
#342393 #93234A #829323 #23936C
square
#342393 #93234A #829323 #23936C
split-complementary
#342393 #936C23 #4A9323
monochromatic
#110B30 #231762 #342393 #452FC4 #6C59D7

Accessibility & contrast

On white

11.62
#342393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342393 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342393
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342393#FFFFFF#000000##FFFFFF
##3423931.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003491
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342393;
/* rgb */ color: rgb(52, 35, 147);
/* oklch */ color: oklch(36.1% 0.172 280.3);
Tailwind
colors: {
  custom: {
    50: '#7960b4',
    500: '#342393',
    950: '#000000',
  },
}
SCSS
$custom: #342393;
$custom-light: #7960b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342393",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 147
  },
  "hsl": {
    "h": 249.107,
    "s": 61.538,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36099,
    "c": 0.17176,
    "h": 280.3
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#342393
secondary
#ACBC56
accent
#E543CC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342393

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

Preview Lab → · Contrast checker → · Palette generator →

#342393 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva