#342FB6#342FB6

#342FB6 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.4% C 0.203 H 274.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#342FB6
RGBrgb(52, 47, 182)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 74%, 71%)
CMYKcmyk(71.4%, 74.2%, 0%, 28.6%)
CIE-LABlab(29.76, 45.48, -69.92)
CIE-LCHlch(29.76, 83.41, 303.04°)
OKLaboklab(41.4% 0.0161 -0.2022)
OKLCHoklch(41.4% 0.203 274.6)
XYZxyz(10.8734, 6.1394, 44.8589)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB6 #B1B62F
analogous
#2F6EB6 #342FB6 #772FB6
triadic
#342FB6 #B6342F #2FB634
tetradic
#342FB6 #B62F6E #B1B62F #2FB677
square
#342FB6 #B62F6E #B1B62F #2FB677
split-complementary
#342FB6 #B6772F #6EB62F
monochromatic
#181655 #262285 #342FB6 #5550D2 #8481DE

Accessibility & contrast

On white

9.43
#342FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#342FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FB6
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB6#FFFFFF#000000##FFFFFF
##342FB61.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342fb6;
/* rgb */ color: rgb(52, 47, 182);
/* oklch */ color: oklch(41.4% 0.203 274.6);
Tailwind
colors: {
  custom: {
    50: '#7f69cd',
    500: '#342fb6',
    950: '#000000',
  },
}
SCSS
$custom: #342fb6;
$custom-light: #7f69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb6",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 242.222,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41397,
    "c": 0.20284,
    "h": 274.6
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#342FB6
secondary
#C5C779
accent
#E246DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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