#342DA5#342DA5

#342DA5 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.184 H 276.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#342DA5
RGBrgb(52, 45, 165)
HSLhsl(244, 57%, 41%)
HSVhsv(244, 73%, 65%)
CMYKcmyk(68.5%, 72.7%, 0%, 35.3%)
CIE-LABlab(27.63, 41.02, -63.24)
CIE-LCHlch(27.63, 75.38, 302.97°)
OKLaboklab(39.37% 0.0205 -0.1827)
OKLCHoklch(39.37% 0.184 276.4)
XYZxyz(9.1439, 5.3226, 36.1355)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DA5 #9EA52D
analogous
#2D62A5 #342DA5 #702DA5
triadic
#342DA5 #A5342D #2DA534
tetradic
#342DA5 #A52D62 #9EA52D #2DA570
square
#342DA5 #A52D62 #9EA52D #2DA570
split-complementary
#342DA5 #A5702D #62A52D
monochromatic
#161345 #252075 #342DA5 #4B43CC #7973D9

Accessibility & contrast

On white

10.17
#342DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342DA5
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DA5#FFFFFF#000000##FFFFFF
##342DA51.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #342da5;
/* rgb */ color: rgb(52, 45, 165);
/* oklch */ color: oklch(39.4% 0.184 276.4);
Tailwind
colors: {
  custom: {
    50: '#7b67c1',
    500: '#342da5',
    950: '#000000',
  },
}
SCSS
$custom: #342da5;
$custom-light: #7b67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#342da5",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 243.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39369,
    "c": 0.18384,
    "h": 276.4
  },
  "luminance": 0.05323
}

Semantic roles & 50–950 ramp

primary
#342DA5
secondary
#BCC16D
accent
#E047D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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