#342DB8#342DB8

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

Color values

HEX#342DB8
RGBrgb(52, 45, 184)
HSLhsl(243, 61%, 45%)
HSVhsv(243, 76%, 72%)
CMYKcmyk(71.7%, 75.5%, 0%, 27.8%)
CIE-LABlab(29.58, 47.22, -71.41)
CIE-LCHlch(29.58, 85.61, 303.48°)
OKLaboklab(41.33% 0.0167 -0.2065)
OKLCHoklch(41.33% 0.207 274.6)
XYZxyz(11.0034, 6.0665, 45.9292)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DB8 #B1B82D
analogous
#2D6BB8 #342DB8 #7A2DB8
triadic
#342DB8 #B8342D #2DB834
tetradic
#342DB8 #B82D6B #B1B82D #2DB87A
square
#342DB8 #B82D6B #B1B82D #2DB87A
split-complementary
#342DB8 #B87A2D #6BB82D
monochromatic
#181556 #262187 #342DB8 #554ED4 #8480E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342DB8#FFFFFF#000000##FFFFFF
##342DB81.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)
#004CBC
Deuteranopia (green-blind)
#003FB6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #342db8;
/* rgb */ color: rgb(52, 45, 184);
/* oklch */ color: oklch(41.3% 0.207 274.6);
Tailwind
colors: {
  custom: {
    50: '#8068cf',
    500: '#342db8',
    950: '#000000',
  },
}
SCSS
$custom: #342db8;
$custom-light: #8068cf;
$custom-dark: #000000;
JSON
{
  "hex": "#342db8",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 243.022,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4133,
    "c": 0.2072,
    "h": 274.6
  },
  "luminance": 0.06068
}

Semantic roles & 50–950 ramp

primary
#342DB8
secondary
#C5C978
accent
#E444DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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