#342EA2#342EA2

#342EA2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.179 H 276.5°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#342EA2
RGBrgb(52, 46, 162)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 72%, 64%)
CMYKcmyk(67.9%, 71.6%, 0%, 36.5%)
CIE-LABlab(27.55, 39.44, -61.56)
CIE-LCHlch(27.55, 73.11, 302.65°)
OKLaboklab(39.22% 0.0204 -0.1778)
OKLCHoklch(39.22% 0.179 276.5)
XYZxyz(8.9126, 5.2919, 34.7272)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA2 #9CA22E
analogous
#2E62A2 #342EA2 #6E2EA2
triadic
#342EA2 #A2342E #2EA234
tetradic
#342EA2 #A22E62 #9CA22E #2EA26E
square
#342EA2 #A22E62 #9CA22E #2EA26E
split-complementary
#342EA2 #A26E2E #62A22E
monochromatic
#151343 #252072 #342EA2 #4A43CA #7873D7

Accessibility & contrast

On white

10.20
#342EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#342EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EA2
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA2#FFFFFF#000000##FFFFFF
##342EA21.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342ea2;
/* rgb */ color: rgb(52, 46, 162);
/* oklch */ color: oklch(39.2% 0.179 276.5);
Tailwind
colors: {
  custom: {
    50: '#7b68bf',
    500: '#342ea2',
    950: '#000000',
  },
}
SCSS
$custom: #342ea2;
$custom-light: #7b68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea2",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 243.103,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3922,
    "c": 0.17897,
    "h": 276.5
  },
  "luminance": 0.05293
}

Semantic roles & 50–950 ramp

primary
#342EA2
secondary
#BBBF6D
accent
#DF49D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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