#342DC2#342DC2

#342DC2 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.4% C 0.219 H 273.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#342DC2
RGBrgb(52, 45, 194)
HSLhsl(243, 62%, 47%)
HSVhsv(243, 77%, 76%)
CMYKcmyk(73.2%, 76.8%, 0%, 23.9%)
CIE-LABlab(30.64, 50.41, -75.56)
CIE-LCHlch(30.64, 90.83, 303.71°)
OKLaboklab(42.39% 0.0146 -0.2186)
OKLCHoklch(42.39% 0.219 273.8)
XYZxyz(12.0889, 6.5007, 51.6461)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DC2 #BBC22D
analogous
#2D71C2 #342DC2 #7F2DC2
triadic
#342DC2 #C2342D #2DC234
tetradic
#342DC2 #C22D71 #BBC22D #2DC27F
square
#342DC2 #C22D71 #BBC22D #2DC27F
split-complementary
#342DC2 #C27F2D #71C22D
monochromatic
#19165F #272190 #342DC2 #5B55D7 #8B86E3

Accessibility & contrast

On white

9.13
#342DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#342DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DC2
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DC2#FFFFFF#000000##FFFFFF
##342DC21.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC6
Deuteranopia (green-blind)
#0041BF
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342dc2;
/* rgb */ color: rgb(52, 45, 194);
/* oklch */ color: oklch(42.4% 0.219 273.8);
Tailwind
colors: {
  custom: {
    50: '#8269d6',
    500: '#342dc2',
    950: '#000000',
  },
}
SCSS
$custom: #342dc2;
$custom-light: #8269d6;
$custom-dark: #000000;
JSON
{
  "hex": "#342dc2",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 242.819,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42393,
    "c": 0.21908,
    "h": 273.8
  },
  "luminance": 0.06502
}

Semantic roles & 50–950 ramp

primary
#342DC2
secondary
#C9CD7E
accent
#E542DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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