#342FA4#342FA4

#342FA4 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.180 H 276.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#342FA4
RGBrgb(52, 47, 164)
HSLhsl(243, 55%, 41%)
HSVhsv(243, 71%, 64%)
CMYKcmyk(68.3%, 71.3%, 0%, 35.7%)
CIE-LABlab(27.96, 39.52, -62.10)
CIE-LCHlch(27.96, 73.60, 302.47°)
OKLaboklab(39.57% 0.0194 -0.1794)
OKLCHoklch(39.57% 0.18 276.2)
XYZxyz(9.1313, 5.4426, 35.6841)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA4 #9FA42F
analogous
#2F65A4 #342FA4 #6F2FA4
triadic
#342FA4 #A4342F #2FA434
tetradic
#342FA4 #A42F65 #9FA42F #2FA46F
square
#342FA4 #A42F65 #9FA42F #2FA46F
split-complementary
#342FA4 #A46F2F #65A42F
monochromatic
#161445 #252174 #342FA4 #4C46CA #7A76D8

Accessibility & contrast

On white

10.05
#342FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#342FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA4
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA4#FFFFFF#000000##FFFFFF
##342FA41.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342fa4;
/* rgb */ color: rgb(52, 47, 164);
/* oklch */ color: oklch(39.6% 0.180 276.2);
Tailwind
colors: {
  custom: {
    50: '#7b69c0',
    500: '#342fa4',
    950: '#000000',
  },
}
SCSS
$custom: #342fa4;
$custom-light: #7b69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa4",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 242.564,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39572,
    "c": 0.18042,
    "h": 276.2
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

primary
#342FA4
secondary
#BCC06F
accent
#DF49D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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