#342DA9#342DA9

#342DA9 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.189 H 276.0°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#342DA9
RGBrgb(52, 45, 169)
HSLhsl(243, 58%, 42%)
HSVhsv(243, 73%, 66%)
CMYKcmyk(69.2%, 73.4%, 0%, 33.7%)
CIE-LABlab(28.04, 42.34, -64.99)
CIE-LCHlch(28.04, 77.57, 303.09°)
OKLaboklab(39.78% 0.0197 -0.1878)
OKLCHoklch(39.78% 0.189 276)
XYZxyz(9.5136, 5.4705, 38.0830)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DA9 #A2A92D
analogous
#2D64A9 #342DA9 #722DA9
triadic
#342DA9 #A9342D #2DA934
tetradic
#342DA9 #A92D64 #A2A92D #2DA972
square
#342DA9 #A92D64 #A2A92D #2DA972
split-complementary
#342DA9 #A9722D #64A92D
monochromatic
#161348 #252079 #342DA9 #4D46CE #7C76DA

Accessibility & contrast

On white

10.03
#342DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#342DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DA9
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DA9#FFFFFF#000000##FFFFFF
##342DA91.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342da9;
/* rgb */ color: rgb(52, 45, 169);
/* oklch */ color: oklch(39.8% 0.189 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c68c4',
    500: '#342da9',
    950: '#000000',
  },
}
SCSS
$custom: #342da9;
$custom-light: #7c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#342da9",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 243.387,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39775,
    "c": 0.18885,
    "h": 276
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#342DA9
secondary
#BEC26F
accent
#E147D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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