#342ABD#342ABD

#342ABD is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.5% C 0.216 H 274.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#342ABD
RGBrgb(52, 42, 189)
HSLhsl(244, 64%, 45%)
HSVhsv(244, 78%, 74%)
CMYKcmyk(72.5%, 77.8%, 0%, 25.9%)
CIE-LABlab(29.56, 50.39, -74.40)
CIE-LCHlch(29.56, 89.86, 304.11°)
OKLaboklab(41.48% 0.017 -0.2152)
OKLCHoklch(41.48% 0.216 274.5)
XYZxyz(11.4264, 6.0590, 48.7016)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342ABD #B3BD2A
analogous
#2A69BD #342ABD #7E2ABD
triadic
#342ABD #BD342A #2ABD34
tetradic
#342ABD #BD2A69 #B3BD2A #2ABD7E
square
#342ABD #BD2A69 #B3BD2A #2ABD7E
split-complementary
#342ABD #BD7E2A #69BD2A
monochromatic
#181459 #261F8B #342ABD #564DD7 #867FE3

Accessibility & contrast

On white

9.49
#342ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#342ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342ABD
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342ABD#FFFFFF#000000##FFFFFF
##342ABD1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC1
Deuteranopia (green-blind)
#003FBA
Tritanopia (blue-blind)
#005673
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342abd;
/* rgb */ color: rgb(52, 42, 189);
/* oklch */ color: oklch(41.5% 0.216 274.5);
Tailwind
colors: {
  custom: {
    50: '#8167d2',
    500: '#342abd',
    950: '#000000',
  },
}
SCSS
$custom: #342abd;
$custom-light: #8167d2;
$custom-dark: #000000;
JSON
{
  "hex": "#342abd",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 244.082,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41475,
    "c": 0.21586,
    "h": 274.5
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#342ABD
secondary
#C5CB78
accent
#E741DB
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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