#342CB6#342CB6

#342CB6 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.0% C 0.206 H 274.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#342CB6
RGBrgb(52, 44, 182)
HSLhsl(243, 61%, 44%)
HSVhsv(243, 76%, 71%)
CMYKcmyk(71.4%, 75.8%, 0%, 28.6%)
CIE-LABlab(29.18, 47.12, -70.88)
CIE-LCHlch(29.18, 85.12, 303.62°)
OKLaboklab(40.99% 0.0176 -0.205)
OKLCHoklch(40.99% 0.206 274.9)
XYZxyz(10.7576, 5.9078, 44.8203)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CB6 #AEB62C
analogous
#2C69B6 #342CB6 #792CB6
triadic
#342CB6 #B6342C #2CB634
tetradic
#342CB6 #B62C69 #AEB62C #2CB679
square
#342CB6 #B62C69 #AEB62C #2CB679
split-complementary
#342CB6 #B6792C #69B62C
monochromatic
#181453 #262085 #342CB6 #534CD4 #837DE0

Accessibility & contrast

On white

9.63
#342CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#342CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CB6
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CB6#FFFFFF#000000##FFFFFF
##342CB61.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#003EB4
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #342cb6;
/* rgb */ color: rgb(52, 44, 182);
/* oklch */ color: oklch(41.0% 0.206 274.9);
Tailwind
colors: {
  custom: {
    50: '#7f68cd',
    500: '#342cb6',
    950: '#000000',
  },
}
SCSS
$custom: #342cb6;
$custom-light: #7f68cd;
$custom-dark: #000000;
JSON
{
  "hex": "#342cb6",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 243.478,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40985,
    "c": 0.20574,
    "h": 274.9
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#342CB6
secondary
#C3C876
accent
#E444DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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