#342CA6#342CA6

#342CA6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.186 H 276.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#342CA6
RGBrgb(52, 44, 166)
HSLhsl(244, 58%, 41%)
HSVhsv(244, 73%, 65%)
CMYKcmyk(68.7%, 73.5%, 0%, 34.9%)
CIE-LABlab(27.53, 41.93, -64.02)
CIE-LCHlch(27.53, 76.53, 303.22°)
OKLaboklab(39.32% 0.0209 -0.185)
OKLCHoklch(39.32% 0.186 276.4)
XYZxyz(9.1975, 5.2838, 36.6042)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA6 #9EA62C
analogous
#2C61A6 #342CA6 #712CA6
triadic
#342CA6 #A6342C #2CA634
tetradic
#342CA6 #A62C61 #9EA62C #2CA671
square
#342CA6 #A62C61 #9EA62C #2CA671
split-complementary
#342CA6 #A6712C #61A62C
monochromatic
#161245 #251F76 #342CA6 #4B42CD #7973DA

Accessibility & contrast

On white

10.21
#342CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#342CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA6
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA6#FFFFFF#000000##FFFFFF
##342CA61.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ca6;
/* rgb */ color: rgb(52, 44, 166);
/* oklch */ color: oklch(39.3% 0.186 276.4);
Tailwind
colors: {
  custom: {
    50: '#7c67c2',
    500: '#342ca6',
    950: '#000000',
  },
}
SCSS
$custom: #342ca6;
$custom-light: #7c67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca6",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 243.934,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39324,
    "c": 0.18615,
    "h": 276.4
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#342CA6
secondary
#BCC16D
accent
#E146D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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