#342CA4#342CA4

#342CA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.184 H 276.7°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#342CA4
RGBrgb(52, 44, 164)
HSLhsl(244, 58%, 41%)
HSVhsv(244, 73%, 64%)
CMYKcmyk(68.3%, 73.2%, 0%, 35.7%)
CIE-LABlab(27.33, 41.27, -63.14)
CIE-LCHlch(27.33, 75.43, 303.17°)
OKLaboklab(39.12% 0.0213 -0.1824)
OKLCHoklch(39.12% 0.184 276.7)
XYZxyz(9.0155, 5.2110, 35.6455)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CA4 #9CA42C
analogous
#2C60A4 #342CA4 #702CA4
triadic
#342CA4 #A4342C #2CA434
tetradic
#342CA4 #A42C60 #9CA42C #2CA470
square
#342CA4 #A42C60 #9CA42C #2CA470
split-complementary
#342CA4 #A4702C #60A42C
monochromatic
#151243 #251F74 #342CA4 #4A41CC #7871D9

Accessibility & contrast

On white

10.28
#342CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#342CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CA4
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CA4#FFFFFF#000000##FFFFFF
##342CA41.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ca4;
/* rgb */ color: rgb(52, 44, 164);
/* oklch */ color: oklch(39.1% 0.184 276.7);
Tailwind
colors: {
  custom: {
    50: '#7b67c0',
    500: '#342ca4',
    950: '#000000',
  },
}
SCSS
$custom: #342ca4;
$custom-light: #7b67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#342ca4",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 244,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3912,
    "c": 0.18365,
    "h": 276.7
  },
  "luminance": 0.05212
}

Semantic roles & 50–950 ramp

primary
#342CA4
secondary
#BBC06B
accent
#E147D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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