#342FC2#342FC2

#342FC2 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.7% C 0.217 H 273.6°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#342FC2
RGBrgb(52, 47, 194)
HSLhsl(242, 61%, 47%)
HSVhsv(242, 76%, 76%)
CMYKcmyk(73.2%, 75.8%, 0%, 23.9%)
CIE-LABlab(31.01, 49.35, -74.95)
CIE-LCHlch(31.01, 89.73, 303.36°)
OKLaboklab(42.65% 0.0138 -0.2168)
OKLCHoklch(42.65% 0.217 273.6)
XYZxyz(12.1670, 6.6569, 51.6722)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FC2 #BDC22F
analogous
#2F73C2 #342FC2 #7E2FC2
triadic
#342FC2 #C2342F #2FC234
tetradic
#342FC2 #C22F73 #BDC22F #2FC27E
square
#342FC2 #C22F73 #BDC22F #2FC27E
split-complementary
#342FC2 #C27E2F #73C22F
monochromatic
#1A175F #272391 #342FC2 #5C58D6 #8C89E2

Accessibility & contrast

On white

9.01
#342FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#342FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FC2
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FC2#FFFFFF#000000##FFFFFF
##342FC21.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C6
Deuteranopia (green-blind)
#0042BF
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #342fc2;
/* rgb */ color: rgb(52, 47, 194);
/* oklch */ color: oklch(42.7% 0.217 273.6);
Tailwind
colors: {
  custom: {
    50: '#826ad6',
    500: '#342fc2',
    950: '#000000',
  },
}
SCSS
$custom: #342fc2;
$custom-light: #826ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#342fc2",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 242.041,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.42654,
    "c": 0.21727,
    "h": 273.6
  },
  "luminance": 0.06658
}

Semantic roles & 50–950 ramp

primary
#342FC2
secondary
#CACC81
accent
#E444DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #342FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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