#342EA5#342EA5

#342EA5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.183 H 276.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#342EA5
RGBrgb(52, 46, 165)
HSLhsl(243, 56%, 41%)
HSVhsv(243, 72%, 65%)
CMYKcmyk(68.5%, 72.1%, 0%, 35.3%)
CIE-LABlab(27.84, 40.44, -62.89)
CIE-LCHlch(27.84, 74.77, 302.74°)
OKLaboklab(39.52% 0.0198 -0.1817)
OKLCHoklch(39.52% 0.183 276.2)
XYZxyz(9.1825, 5.3998, 36.1484)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA5 #9FA52E
analogous
#2E64A5 #342EA5 #702EA5
triadic
#342EA5 #A5342E #2EA534
tetradic
#342EA5 #A52E64 #9FA52E #2EA570
square
#342EA5 #A52E64 #9FA52E #2EA570
split-complementary
#342EA5 #A5702E #64A52E
monochromatic
#161345 #252175 #342EA5 #4C45CB #7A75D8

Accessibility & contrast

On white

10.10
#342EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#342EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EA5
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA5#FFFFFF#000000##FFFFFF
##342EA51.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342ea5;
/* rgb */ color: rgb(52, 46, 165);
/* oklch */ color: oklch(39.5% 0.183 276.2);
Tailwind
colors: {
  custom: {
    50: '#7b68c1',
    500: '#342ea5',
    950: '#000000',
  },
}
SCSS
$custom: #342ea5;
$custom-light: #7b68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea5",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 243.025,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39519,
    "c": 0.18278,
    "h": 276.2
  },
  "luminance": 0.05401
}

Semantic roles & 50–950 ramp

primary
#342EA5
secondary
#BCC06F
accent
#E048D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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