#342FA2#342FA2

#342FA2 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.178 H 276.4°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#342FA2
RGBrgb(52, 47, 162)
HSLhsl(243, 55%, 41%)
HSVhsv(243, 71%, 64%)
CMYKcmyk(67.9%, 71%, 0%, 36.5%)
CIE-LABlab(27.77, 38.84, -61.20)
CIE-LCHlch(27.77, 72.49, 302.40°)
OKLaboklab(39.38% 0.0197 -0.1768)
OKLCHoklch(39.38% 0.178 276.4)
XYZxyz(8.9521, 5.3709, 34.7403)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA2 #9DA22F
analogous
#2F63A2 #342FA2 #6D2FA2
triadic
#342FA2 #A2342F #2FA234
tetradic
#342FA2 #A22F63 #9DA22F #2FA26D
square
#342FA2 #A22F63 #9DA22F #2FA26D
split-complementary
#342FA2 #A26D2F #63A22F
monochromatic
#161343 #252173 #342FA2 #4B45C9 #7975D7

Accessibility & contrast

On white

10.12
#342FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#342FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA2
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA2#FFFFFF#000000##FFFFFF
##342FA21.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342fa2;
/* rgb */ color: rgb(52, 47, 162);
/* oklch */ color: oklch(39.4% 0.178 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b69bf',
    500: '#342fa2',
    950: '#000000',
  },
}
SCSS
$custom: #342fa2;
$custom-light: #7b69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa2",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 242.609,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39375,
    "c": 0.17786,
    "h": 276.4
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#342FA2
secondary
#BBBF6E
accent
#DE49D8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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