#342CBA#342CBA

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

Color values

HEX#342CBA
RGBrgb(52, 44, 186)
HSLhsl(243, 62%, 45%)
HSVhsv(243, 76%, 73%)
CMYKcmyk(72%, 76.3%, 0%, 27.1%)
CIE-LABlab(29.60, 48.40, -72.56)
CIE-LCHlch(29.60, 87.22, 303.71°)
OKLaboklab(41.41% 0.0168 -0.2098)
OKLCHoklch(41.41% 0.211 274.6)
XYZxyz(11.1768, 6.0755, 47.0285)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CBA #B2BA2C
analogous
#2C6BBA #342CBA #7B2CBA
triadic
#342CBA #BA342C #2CBA34
tetradic
#342CBA #BA2C6B #B2BA2C #2CBA7B
square
#342CBA #BA2C6B #B2BA2C #2CBA7B
split-complementary
#342CBA #BA7B2C #6BBA2C
monochromatic
#181557 #262089 #342CBA #564ED5 #8580E1

Accessibility & contrast

On white

9.48
#342CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#342CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CBA
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CBA#FFFFFF#000000##FFFFFF
##342CBA1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#003FB7
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342cba;
/* rgb */ color: rgb(52, 44, 186);
/* oklch */ color: oklch(41.4% 0.211 274.6);
Tailwind
colors: {
  custom: {
    50: '#8068d0',
    500: '#342cba',
    950: '#000000',
  },
}
SCSS
$custom: #342cba;
$custom-light: #8068d0;
$custom-dark: #000000;
JSON
{
  "hex": "#342cba",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 243.38,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41409,
    "c": 0.21052,
    "h": 274.6
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#342CBA
secondary
#C5CA78
accent
#E543DC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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