#342EA3#342EA3

#342EA3 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.180 H 276.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#342EA3
RGBrgb(52, 46, 163)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 72%, 64%)
CMYKcmyk(68.1%, 71.8%, 0%, 36.1%)
CIE-LABlab(27.65, 39.77, -62.00)
CIE-LCHlch(27.65, 73.66, 302.68°)
OKLaboklab(39.32% 0.0202 -0.1791)
OKLCHoklch(39.32% 0.18 276.4)
XYZxyz(9.0019, 5.3276, 35.1972)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA3 #9DA32E
analogous
#2E62A3 #342EA3 #6E2EA3
triadic
#342EA3 #A3342E #2EA334
tetradic
#342EA3 #A32E62 #9DA32E #2EA36E
square
#342EA3 #A32E62 #9DA32E #2EA36E
split-complementary
#342EA3 #A36E2E #62A32E
monochromatic
#161344 #252173 #342EA3 #4B44CA #7974D8

Accessibility & contrast

On white

10.17
#342EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342EA3
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA3#FFFFFF#000000##FFFFFF
##342EA31.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342ea3;
/* rgb */ color: rgb(52, 46, 163);
/* oklch */ color: oklch(39.3% 0.180 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b68bf',
    500: '#342ea3',
    950: '#000000',
  },
}
SCSS
$custom: #342ea3;
$custom-light: #7b68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea3",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 243.077,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.3932,
    "c": 0.18024,
    "h": 276.4
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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