#342EA4#342EA4

#342EA4 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.182 H 276.3°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#342EA4
RGBrgb(52, 46, 164)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 72%, 64%)
CMYKcmyk(68.3%, 72%, 0%, 35.7%)
CIE-LABlab(27.75, 40.11, -62.45)
CIE-LCHlch(27.75, 74.22, 302.71°)
OKLaboklab(39.42% 0.02 -0.1804)
OKLCHoklch(39.42% 0.182 276.3)
XYZxyz(9.0918, 5.3636, 35.6709)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA4 #9EA42E
analogous
#2E63A4 #342EA4 #6F2EA4
triadic
#342EA4 #A4342E #2EA434
tetradic
#342EA4 #A42E63 #9EA42E #2EA46F
square
#342EA4 #A42E63 #9EA42E #2EA46F
split-complementary
#342EA4 #A46F2E #63A42E
monochromatic
#161344 #252174 #342EA4 #4B45CB #7974D8

Accessibility & contrast

On white

10.13
#342EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#342EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EA4
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA4#FFFFFF#000000##FFFFFF
##342EA41.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ea4;
/* rgb */ color: rgb(52, 46, 164);
/* oklch */ color: oklch(39.4% 0.182 276.3);
Tailwind
colors: {
  custom: {
    50: '#7b68c0',
    500: '#342ea4',
    950: '#000000',
  },
}
SCSS
$custom: #342ea4;
$custom-light: #7b68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea4",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 243.051,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39419,
    "c": 0.18151,
    "h": 276.3
  },
  "luminance": 0.05364
}

Semantic roles & 50–950 ramp

primary
#342EA4
secondary
#BCC06E
accent
#DF48D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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