#342FC6#342FC6

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

Color values

HEX#342FC6
RGBrgb(52, 47, 198)
HSLhsl(242, 62%, 48%)
HSVhsv(242, 76%, 78%)
CMYKcmyk(73.7%, 76.3%, 0%, 22.4%)
CIE-LABlab(31.44, 50.62, -76.59)
CIE-LCHlch(31.44, 91.81, 303.46°)
OKLaboklab(43.08% 0.013 -0.2216)
OKLCHoklch(43.08% 0.222 273.3)
XYZxyz(12.6223, 6.8390, 54.0700)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FC6 #C1C62F
analogous
#2F75C6 #342FC6 #802FC6
triadic
#342FC6 #C6342F #2FC634
tetradic
#342FC6 #C62F75 #C1C62F #2FC680
square
#342FC6 #C62F75 #C1C62F #2FC680
split-complementary
#342FC6 #C6802F #75C62F
monochromatic
#1A1863 #272395 #342FC6 #5E5AD8 #8F8CE4

Accessibility & contrast

On white

8.87
#342FC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#342FC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FC6
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FC6#FFFFFF#000000##FFFFFF
##342FC61.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CA
Deuteranopia (green-blind)
#0043C3
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #342fc6;
/* rgb */ color: rgb(52, 47, 198);
/* oklch */ color: oklch(43.1% 0.222 273.3);
Tailwind
colors: {
  custom: {
    50: '#836ad9',
    500: '#342fc6',
    950: '#000000',
  },
}
SCSS
$custom: #342fc6;
$custom-light: #836ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#342fc6",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 198
  },
  "hsl": {
    "h": 241.987,
    "s": 61.633,
    "l": 48.039
  },
  "oklch": {
    "l": 0.43079,
    "c": 0.22198,
    "h": 273.3
  },
  "luminance": 0.0684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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