#342EA7#342EA7

#342EA7 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.185 H 276.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#342EA7
RGBrgb(52, 46, 167)
HSLhsl(243, 57%, 42%)
HSVhsv(243, 72%, 65%)
CMYKcmyk(68.9%, 72.5%, 0%, 34.5%)
CIE-LABlab(28.04, 41.11, -63.77)
CIE-LCHlch(28.04, 75.87, 302.80°)
OKLaboklab(39.72% 0.0195 -0.1843)
OKLCHoklch(39.72% 0.185 276)
XYZxyz(9.3659, 5.4732, 37.1146)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA7 #A1A72E
analogous
#2E65A7 #342EA7 #712EA7
triadic
#342EA7 #A7342E #2EA734
tetradic
#342EA7 #A72E65 #A1A72E #2EA771
square
#342EA7 #A72E65 #A1A72E #2EA771
split-complementary
#342EA7 #A7712E #65A72E
monochromatic
#161447 #252177 #342EA7 #4D46CC #7B76D9

Accessibility & contrast

On white

10.02
#342EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342EA7
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA7#FFFFFF#000000##FFFFFF
##342EA71.0010.022.0910.02
#FFFFFF10.021.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342ea7;
/* rgb */ color: rgb(52, 46, 167);
/* oklch */ color: oklch(39.7% 0.185 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c68c2',
    500: '#342ea7',
    950: '#000000',
  },
}
SCSS
$custom: #342ea7;
$custom-light: #7c68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea7",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 242.975,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.3972,
    "c": 0.1853,
    "h": 276
  },
  "luminance": 0.05474
}

Semantic roles & 50–950 ramp

primary
#342EA7
secondary
#BDC170
accent
#E048D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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