#342DA4#342DA4

#342DA4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.183 H 276.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#342DA4
RGBrgb(52, 45, 164)
HSLhsl(244, 57%, 41%)
HSVhsv(244, 73%, 64%)
CMYKcmyk(68.3%, 72.6%, 0%, 35.7%)
CIE-LABlab(27.54, 40.69, -62.80)
CIE-LCHlch(27.54, 74.83, 302.94°)
OKLaboklab(39.27% 0.0207 -0.1814)
OKLCHoklch(39.27% 0.183 276.5)
XYZxyz(9.0532, 5.2864, 35.6580)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DA4 #9DA42D
analogous
#2D61A4 #342DA4 #6F2DA4
triadic
#342DA4 #A4342D #2DA434
tetradic
#342DA4 #A42D61 #9DA42D #2DA46F
square
#342DA4 #A42D61 #9DA42D #2DA46F
split-complementary
#342DA4 #A46F2D #61A42D
monochromatic
#161344 #252074 #342DA4 #4B43CB #7973D9

Accessibility & contrast

On white

10.21
#342DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#342DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DA4
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DA4#FFFFFF#000000##FFFFFF
##342DA41.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342da4;
/* rgb */ color: rgb(52, 45, 164);
/* oklch */ color: oklch(39.3% 0.183 276.5);
Tailwind
colors: {
  custom: {
    50: '#7b67c0',
    500: '#342da4',
    950: '#000000',
  },
}
SCSS
$custom: #342da4;
$custom-light: #7b67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#342da4",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 243.529,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39269,
    "c": 0.18258,
    "h": 276.5
  },
  "luminance": 0.05287
}

Semantic roles & 50–950 ramp

primary
#342DA4
secondary
#BBC06D
accent
#E048D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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