#342EC2#342EC2

#342EC2 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.5% C 0.218 H 273.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#342EC2
RGBrgb(52, 46, 194)
HSLhsl(242, 62%, 47%)
HSVhsv(242, 76%, 76%)
CMYKcmyk(73.2%, 76.3%, 0%, 23.9%)
CIE-LABlab(30.83, 49.88, -75.25)
CIE-LCHlch(30.83, 90.28, 303.54°)
OKLaboklab(42.52% 0.0142 -0.2177)
OKLCHoklch(42.52% 0.218 273.7)
XYZxyz(12.1275, 6.5779, 51.6590)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EC2 #BCC22E
analogous
#2E72C2 #342EC2 #7E2EC2
triadic
#342EC2 #C2342E #2EC234
tetradic
#342EC2 #C22E72 #BCC22E #2EC27E
square
#342EC2 #C22E72 #BCC22E #2EC27E
split-complementary
#342EC2 #C27E2E #72C22E
monochromatic
#19175F #272291 #342EC2 #5B56D7 #8B88E3

Accessibility & contrast

On white

9.07
#342EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#342EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EC2
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EC2#FFFFFF#000000##FFFFFF
##342EC21.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342ec2;
/* rgb */ color: rgb(52, 46, 194);
/* oklch */ color: oklch(42.5% 0.218 273.7);
Tailwind
colors: {
  custom: {
    50: '#8269d6',
    500: '#342ec2',
    950: '#000000',
  },
}
SCSS
$custom: #342ec2;
$custom-light: #8269d6;
$custom-dark: #000000;
JSON
{
  "hex": "#342ec2",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 242.432,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.42522,
    "c": 0.21817,
    "h": 273.7
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#342EC2
secondary
#C9CC7F
accent
#E543DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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