#342DB6#342DB6

#342DB6 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.205 H 274.8°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#342DB6
RGBrgb(52, 45, 182)
HSLhsl(243, 60%, 45%)
HSVhsv(243, 75%, 71%)
CMYKcmyk(71.4%, 75.3%, 0%, 28.6%)
CIE-LABlab(29.37, 46.58, -70.57)
CIE-LCHlch(29.37, 84.55, 303.43°)
OKLaboklab(41.12% 0.0171 -0.2041)
OKLCHoklch(41.12% 0.205 274.8)
XYZxyz(10.7953, 5.9832, 44.8329)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DB6 #AFB62D
analogous
#2D6AB6 #342DB6 #792DB6
triadic
#342DB6 #B6342D #2DB634
tetradic
#342DB6 #B62D6A #AFB62D #2DB679
square
#342DB6 #B62D6A #AFB62D #2DB679
split-complementary
#342DB6 #B6792D #6AB62D
monochromatic
#181554 #262185 #342DB6 #544DD3 #837EDF

Accessibility & contrast

On white

9.56
#342DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#342DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DB6
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DB6#FFFFFF#000000##FFFFFF
##342DB61.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342db6;
/* rgb */ color: rgb(52, 45, 182);
/* oklch */ color: oklch(41.1% 0.205 274.8);
Tailwind
colors: {
  custom: {
    50: '#7f68cd',
    500: '#342db6',
    950: '#000000',
  },
}
SCSS
$custom: #342db6;
$custom-light: #7f68cd;
$custom-dark: #000000;
JSON
{
  "hex": "#342db6",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 243.066,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4112,
    "c": 0.20479,
    "h": 274.8
  },
  "luminance": 0.05984
}

Semantic roles & 50–950 ramp

primary
#342DB6
secondary
#C4C877
accent
#E344DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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