#342EB7#342EB7

#342EB7 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.4% C 0.205 H 274.6°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#342EB7
RGBrgb(52, 46, 183)
HSLhsl(243, 60%, 45%)
HSVhsv(243, 75%, 72%)
CMYKcmyk(71.6%, 74.9%, 0%, 28.2%)
CIE-LABlab(29.67, 46.36, -70.67)
CIE-LCHlch(29.67, 84.52, 303.26°)
OKLaboklab(41.36% 0.0164 -0.2044)
OKLCHoklch(41.36% 0.205 274.6)
XYZxyz(10.9376, 6.1019, 45.3919)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EB7 #B1B72E
analogous
#2E6CB7 #342EB7 #792EB7
triadic
#342EB7 #B7342E #2EB734
tetradic
#342EB7 #B72E6C #B1B72E #2EB779
square
#342EB7 #B72E6C #B1B72E #2EB779
split-complementary
#342EB7 #B7792E #6CB72E
monochromatic
#181555 #262286 #342EB7 #554FD3 #8480DF

Accessibility & contrast

On white

9.46
#342EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#342EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EB7
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EB7#FFFFFF#000000##FFFFFF
##342EB71.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342eb7;
/* rgb */ color: rgb(52, 46, 183);
/* oklch */ color: oklch(41.4% 0.205 274.6);
Tailwind
colors: {
  custom: {
    50: '#7f69ce',
    500: '#342eb7',
    950: '#000000',
  },
}
SCSS
$custom: #342eb7;
$custom-light: #7f69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#342eb7",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 242.628,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41362,
    "c": 0.20503,
    "h": 274.6
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

primary
#342EB7
secondary
#C5C879
accent
#E345DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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