#342DA7#342DA7

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

Color values

HEX#342DA7
RGBrgb(52, 45, 167)
HSLhsl(243, 58%, 42%)
HSVhsv(243, 73%, 65%)
CMYKcmyk(68.9%, 73.1%, 0%, 34.5%)
CIE-LABlab(27.83, 41.69, -64.12)
CIE-LCHlch(27.83, 76.48, 303.03°)
OKLaboklab(39.57% 0.0201 -0.1853)
OKLCHoklch(39.57% 0.186 276.2)
XYZxyz(9.3273, 5.3960, 37.1017)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DA7 #A0A72D
analogous
#2D63A7 #342DA7 #712DA7
triadic
#342DA7 #A7342D #2DA734
tetradic
#342DA7 #A72D63 #A0A72D #2DA771
square
#342DA7 #A72D63 #A0A72D #2DA771
split-complementary
#342DA7 #A7712D #63A72D
monochromatic
#161347 #252077 #342DA7 #4C44CD #7A75DA

Accessibility & contrast

On white

10.10
#342DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#342DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DA7
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DA7#FFFFFF#000000##FFFFFF
##342DA71.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342da7;
/* rgb */ color: rgb(52, 45, 167);
/* oklch */ color: oklch(39.6% 0.186 276.2);
Tailwind
colors: {
  custom: {
    50: '#7c68c2',
    500: '#342da7',
    950: '#000000',
  },
}
SCSS
$custom: #342da7;
$custom-light: #7c68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342da7",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 243.443,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39572,
    "c": 0.18636,
    "h": 276.2
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#342DA7
secondary
#BDC16E
accent
#E147D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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