#342D9A#342D9A

#342D9A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.170 H 277.6°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#342D9A
RGBrgb(52, 45, 154)
HSLhsl(244, 55%, 39%)
HSVhsv(244, 71%, 60%)
CMYKcmyk(66.2%, 70.8%, 0%, 39.6%)
CIE-LABlab(26.56, 37.35, -58.32)
CIE-LCHlch(26.56, 69.25, 302.64°)
OKLaboklab(38.28% 0.0224 -0.1683)
OKLCHoklch(38.28% 0.17 277.6)
XYZxyz(8.1854, 4.9392, 31.0876)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D9A #939A2D
analogous
#2D5D9A #342D9A #6B2D9A
triadic
#342D9A #9A342D #2D9A34
tetradic
#342D9A #9A2D5D #939A2D #2D9A6B
square
#342D9A #9A2D5D #939A2D #2D9A6B
split-complementary
#342D9A #9A6B2D #5D9A2D
monochromatic
#14113B #241F6B #342D9A #463EC7 #746DD4

Accessibility & contrast

On white

10.56
#342D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#342D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D9A
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D9A#FFFFFF#000000##FFFFFF
##342D9A1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342d9a;
/* rgb */ color: rgb(52, 45, 154);
/* oklch */ color: oklch(38.3% 0.170 277.6);
Tailwind
colors: {
  custom: {
    50: '#7967b9',
    500: '#342d9a',
    950: '#000000',
  },
}
SCSS
$custom: #342d9a;
$custom-light: #7967b9;
$custom-dark: #000000;
JSON
{
  "hex": "#342d9a",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 243.853,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38276,
    "c": 0.1698,
    "h": 277.6
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#342D9A
secondary
#B6BB67
accent
#DE4AD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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