#342EA0#342EA0

#342EA0 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.176 H 276.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#342EA0
RGBrgb(52, 46, 160)
HSLhsl(243, 55%, 40%)
HSVhsv(243, 71%, 63%)
CMYKcmyk(67.5%, 71.2%, 0%, 37.3%)
CIE-LABlab(27.36, 38.77, -60.67)
CIE-LCHlch(27.36, 71.99, 302.58°)
OKLaboklab(39.02% 0.0207 -0.1752)
OKLCHoklch(39.02% 0.176 276.7)
XYZxyz(8.7363, 5.2214, 33.7983)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA0 #9AA02E
analogous
#2E61A0 #342EA0 #6D2EA0
triadic
#342EA0 #A0342E #2EA034
tetradic
#342EA0 #A02E61 #9AA02E #2EA06D
square
#342EA0 #A02E61 #9AA02E #2EA06D
split-complementary
#342EA0 #A06D2E #61A02E
monochromatic
#151341 #252070 #342EA0 #4942C9 #7772D6

Accessibility & contrast

On white

10.27
#342EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#342EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EA0
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA0#FFFFFF#000000##FFFFFF
##342EA01.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003C9E
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342ea0;
/* rgb */ color: rgb(52, 46, 160);
/* oklch */ color: oklch(39.0% 0.176 276.7);
Tailwind
colors: {
  custom: {
    50: '#7a68bd',
    500: '#342ea0',
    950: '#000000',
  },
}
SCSS
$custom: #342ea0;
$custom-light: #7a68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea0",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 243.158,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39022,
    "c": 0.17641,
    "h": 276.7
  },
  "luminance": 0.05222
}

Semantic roles & 50–950 ramp

primary
#342EA0
secondary
#BABE6C
accent
#DF49D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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