#342FA6#342FA6

#342FA6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.183 H 276.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#342FA6
RGBrgb(52, 47, 166)
HSLhsl(243, 56%, 42%)
HSVhsv(243, 72%, 65%)
CMYKcmyk(68.7%, 71.7%, 0%, 34.9%)
CIE-LABlab(28.16, 40.19, -62.98)
CIE-LCHlch(28.16, 74.71, 302.54°)
OKLaboklab(39.77% 0.019 -0.182)
OKLCHoklch(39.77% 0.183 276)
XYZxyz(9.3134, 5.5154, 36.6428)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA6 #A1A62F
analogous
#2F66A6 #342FA6 #702FA6
triadic
#342FA6 #A6342F #2FA634
tetradic
#342FA6 #A62F66 #A1A62F #2FA670
square
#342FA6 #A62F66 #A1A62F #2FA670
split-complementary
#342FA6 #A6702F #66A62F
monochromatic
#161447 #252176 #342FA6 #4D47CB #7B77D8

Accessibility & contrast

On white

9.98
#342FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#342FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FA6
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA6#FFFFFF#000000##FFFFFF
##342FA61.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342fa6;
/* rgb */ color: rgb(52, 47, 166);
/* oklch */ color: oklch(39.8% 0.183 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c69c2',
    500: '#342fa6',
    950: '#000000',
  },
}
SCSS
$custom: #342fa6;
$custom-light: #7c69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa6",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 242.521,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39771,
    "c": 0.18296,
    "h": 276
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#342FA6
secondary
#BDC170
accent
#DF49D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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