#342399#342399

#342399 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.179 H 279.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#342399
RGBrgb(52, 35, 153)
HSLhsl(249, 63%, 37%)
HSVhsv(249, 77%, 60%)
CMYKcmyk(66%, 77.1%, 0%, 40%)
CIE-LABlab(24.42, 42.72, -61.22)
CIE-LCHlch(24.42, 74.66, 304.91°)
OKLaboklab(36.73% 0.0293 -0.1768)
OKLCHoklch(36.73% 0.179 279.4)
XYZxyz(7.7651, 4.2314, 30.5384)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342399 #889923
analogous
#234D99 #342399 #6F2399
triadic
#342399 #993423 #239934
tetradic
#342399 #99234D #889923 #23996F
square
#342399 #99234D #889923 #23996F
split-complementary
#342399 #996F23 #4D9923
monochromatic
#120C35 #231867 #342399 #452ECB #6F5DDA

Accessibility & contrast

On white

11.37
#342399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#342399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342399
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342399#FFFFFF#000000##FFFFFF
##3423991.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342399;
/* rgb */ color: rgb(52, 35, 153);
/* oklch */ color: oklch(36.7% 0.179 279.4);
Tailwind
colors: {
  custom: {
    50: '#7a61b8',
    500: '#342399',
    950: '#000000',
  },
}
SCSS
$custom: #342399;
$custom-light: #7a61b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342399",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 248.644,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36727,
    "c": 0.17917,
    "h": 279.4
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#342399
secondary
#B0BE59
accent
#E642CE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #342399

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

Preview Lab → · Contrast checker → · Palette generator →

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