#342EC7#342EC7

#342EC7 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.1% C 0.224 H 273.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#342EC7
RGBrgb(52, 46, 199)
HSLhsl(242, 62%, 48%)
HSVhsv(242, 77%, 78%)
CMYKcmyk(73.9%, 76.9%, 0%, 22%)
CIE-LABlab(31.36, 51.46, -77.30)
CIE-LCHlch(31.36, 92.86, 303.65°)
OKLaboklab(43.06% 0.0131 -0.2237)
OKLCHoklch(43.06% 0.224 273.4)
XYZxyz(12.6985, 6.8063, 54.6663)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EC7 #C1C72E
analogous
#2E74C7 #342EC7 #802EC7
triadic
#342EC7 #C7342E #2EC734
tetradic
#342EC7 #C72E74 #C1C72E #2EC780
square
#342EC7 #C72E74 #C1C72E #2EC780
split-complementary
#342EC7 #C7802E #74C72E
monochromatic
#1A1764 #272395 #342EC7 #5E59D9 #8F8BE4

Accessibility & contrast

On white

8.89
#342EC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#342EC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EC7
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EC7#FFFFFF#000000##FFFFFF
##342EC71.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CB
Deuteranopia (green-blind)
#0042C4
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #342ec7;
/* rgb */ color: rgb(52, 46, 199);
/* oklch */ color: oklch(43.1% 0.224 273.4);
Tailwind
colors: {
  custom: {
    50: '#836ad9',
    500: '#342ec7',
    950: '#000000',
  },
}
SCSS
$custom: #342ec7;
$custom-light: #836ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#342ec7",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 242.353,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.43057,
    "c": 0.22405,
    "h": 273.4
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#342EC7
secondary
#CBCE83
accent
#E642DF
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #342EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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