#342FA3#342FA3

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

Color values

HEX#342FA3
RGBrgb(52, 47, 163)
HSLhsl(243, 55%, 41%)
HSVhsv(243, 71%, 64%)
CMYKcmyk(68.1%, 71.2%, 0%, 36.1%)
CIE-LABlab(27.86, 39.18, -61.65)
CIE-LCHlch(27.86, 73.05, 302.44°)
OKLaboklab(39.47% 0.0195 -0.1781)
OKLCHoklch(39.47% 0.179 276.3)
XYZxyz(9.0414, 5.4066, 35.2103)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FA3 #9EA32F
analogous
#2F64A3 #342FA3 #6E2FA3
triadic
#342FA3 #A3342F #2FA334
tetradic
#342FA3 #A32F64 #9EA32F #2FA36E
square
#342FA3 #A32F64 #9EA32F #2FA36E
split-complementary
#342FA3 #A36E2F #64A32F
monochromatic
#161444 #252173 #342FA3 #4B46CA #7975D7

Accessibility & contrast

On white

10.09
#342FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342FA3
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FA3#FFFFFF#000000##FFFFFF
##342FA31.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003DA1
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342fa3;
/* rgb */ color: rgb(52, 47, 163);
/* oklch */ color: oklch(39.5% 0.179 276.3);
Tailwind
colors: {
  custom: {
    50: '#7b69bf',
    500: '#342fa3',
    950: '#000000',
  },
}
SCSS
$custom: #342fa3;
$custom-light: #7b69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#342fa3",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 242.586,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39473,
    "c": 0.17915,
    "h": 276.3
  },
  "luminance": 0.05407
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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