#342EA6#342EA6

#342EA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.184 H 276.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#342EA6
RGBrgb(52, 46, 166)
HSLhsl(243, 57%, 42%)
HSVhsv(243, 72%, 65%)
CMYKcmyk(68.7%, 72.3%, 0%, 34.9%)
CIE-LABlab(27.94, 40.77, -63.33)
CIE-LCHlch(27.94, 75.32, 302.77°)
OKLaboklab(39.62% 0.0197 -0.183)
OKLCHoklch(39.62% 0.184 276.1)
XYZxyz(9.2738, 5.4364, 36.6296)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EA6 #A0A62E
analogous
#2E64A6 #342EA6 #702EA6
triadic
#342EA6 #A6342E #2EA634
tetradic
#342EA6 #A62E64 #A0A62E #2EA670
square
#342EA6 #A62E64 #A0A62E #2EA670
split-complementary
#342EA6 #A6702E #64A62E
monochromatic
#161346 #252176 #342EA6 #4C46CC #7A76D9

Accessibility & contrast

On white

10.06
#342EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#342EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EA6
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EA6#FFFFFF#000000##FFFFFF
##342EA61.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342ea6;
/* rgb */ color: rgb(52, 46, 166);
/* oklch */ color: oklch(39.6% 0.184 276.1);
Tailwind
colors: {
  custom: {
    50: '#7c68c2',
    500: '#342ea6',
    950: '#000000',
  },
}
SCSS
$custom: #342ea6;
$custom-light: #7c68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342ea6",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 243,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.3962,
    "c": 0.18404,
    "h": 276.1
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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