#342CBD#342CBD

#342CBD is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.7% C 0.214 H 274.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#342CBD
RGBrgb(52, 44, 189)
HSLhsl(243, 62%, 46%)
HSVhsv(243, 77%, 74%)
CMYKcmyk(72.5%, 76.7%, 0%, 25.9%)
CIE-LABlab(29.92, 49.35, -73.80)
CIE-LCHlch(29.92, 88.78, 303.77°)
OKLaboklab(41.73% 0.0161 -0.2135)
OKLCHoklch(41.73% 0.214 274.3)
XYZxyz(11.4991, 6.2044, 48.7258)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CBD #B5BD2C
analogous
#2C6DBD #342CBD #7C2CBD
triadic
#342CBD #BD342C #2CBD34
tetradic
#342CBD #BD2C6D #B5BD2C #2CBD7C
square
#342CBD #BD2C6D #B5BD2C #2CBD7C
split-complementary
#342CBD #BD7C2C #6DBD2C
monochromatic
#19155A #26208B #342CBD #5750D6 #8782E2

Accessibility & contrast

On white

9.37
#342CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#342CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CBD
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CBD#FFFFFF#000000##FFFFFF
##342CBD1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0040BA
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342cbd;
/* rgb */ color: rgb(52, 44, 189);
/* oklch */ color: oklch(41.7% 0.214 274.3);
Tailwind
colors: {
  custom: {
    50: '#8168d2',
    500: '#342cbd',
    950: '#000000',
  },
}
SCSS
$custom: #342cbd;
$custom-light: #8168d2;
$custom-dark: #000000;
JSON
{
  "hex": "#342cbd",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 243.31,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41729,
    "c": 0.21408,
    "h": 274.3
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#342CBD
secondary
#C6CB7A
accent
#E542DC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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