#342DA8#342DA8

#342DA8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.188 H 276.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#342DA8
RGBrgb(52, 45, 168)
HSLhsl(243, 58%, 42%)
HSVhsv(243, 73%, 66%)
CMYKcmyk(69%, 73.2%, 0%, 34.1%)
CIE-LABlab(27.93, 42.02, -64.55)
CIE-LCHlch(27.93, 77.02, 303.06°)
OKLaboklab(39.67% 0.0199 -0.1865)
OKLCHoklch(39.67% 0.188 276.1)
XYZxyz(9.4201, 5.4331, 37.5905)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DA8 #A1A82D
analogous
#2D64A8 #342DA8 #722DA8
triadic
#342DA8 #A8342D #2DA834
tetradic
#342DA8 #A82D64 #A1A82D #2DA872
square
#342DA8 #A82D64 #A1A82D #2DA872
split-complementary
#342DA8 #A8722D #64A82D
monochromatic
#161347 #252078 #342DA8 #4D45CD #7B75DA

Accessibility & contrast

On white

10.06
#342DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342DA8
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DA8#FFFFFF#000000##FFFFFF
##342DA81.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342da8;
/* rgb */ color: rgb(52, 45, 168);
/* oklch */ color: oklch(39.7% 0.188 276.1);
Tailwind
colors: {
  custom: {
    50: '#7c68c3',
    500: '#342da8',
    950: '#000000',
  },
}
SCSS
$custom: #342da8;
$custom-light: #7c68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#342da8",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 243.415,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39673,
    "c": 0.18761,
    "h": 276.1
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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