#342D9C#342D9C

#342D9C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.172 H 277.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#342D9C
RGBrgb(52, 45, 156)
HSLhsl(244, 55%, 39%)
HSVhsv(244, 71%, 61%)
CMYKcmyk(66.7%, 71.2%, 0%, 38.8%)
CIE-LABlab(26.75, 38.02, -59.22)
CIE-LCHlch(26.75, 70.38, 302.70°)
OKLaboklab(38.47% 0.0221 -0.171)
OKLCHoklch(38.47% 0.172 277.3)
XYZxyz(8.3534, 5.0064, 31.9722)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D9C #959C2D
analogous
#2D5E9C #342D9C #6C2D9C
triadic
#342D9C #9C342D #2D9C34
tetradic
#342D9C #9C2D5E #959C2D #2D9C6C
square
#342D9C #9C2D5E #959C2D #2D9C6C
split-complementary
#342D9C #9C6C2D #5E9C2D
monochromatic
#14123D #241F6D #342D9C #473FC8 #756ED5

Accessibility & contrast

On white

10.49
#342D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#342D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D9C
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D9C#FFFFFF#000000##FFFFFF
##342D9C1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342d9c;
/* rgb */ color: rgb(52, 45, 156);
/* oklch */ color: oklch(38.5% 0.172 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a67ba',
    500: '#342d9c',
    950: '#000000',
  },
}
SCSS
$custom: #342d9c;
$custom-light: #7a67ba;
$custom-dark: #000000;
JSON
{
  "hex": "#342d9c",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 243.784,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38472,
    "c": 0.17239,
    "h": 277.3
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#342D9C
secondary
#B7BC68
accent
#DF49D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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