#342D99#342D99

#342D99 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.169 H 277.7°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#342D99
RGBrgb(52, 45, 153)
HSLhsl(244, 55%, 39%)
HSVhsv(244, 71%, 60%)
CMYKcmyk(66%, 70.6%, 0%, 40%)
CIE-LABlab(26.47, 37.01, -57.86)
CIE-LCHlch(26.47, 68.69, 302.61°)
OKLaboklab(38.18% 0.0225 -0.167)
OKLCHoklch(38.18% 0.169 277.7)
XYZxyz(8.1025, 4.9061, 30.6508)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D99 #92992D
analogous
#2D5C99 #342D99 #6A2D99
triadic
#342D99 #99342D #2D9934
tetradic
#342D99 #992D5C #92992D #2D996A
square
#342D99 #992D5C #92992D #2D996A
split-complementary
#342D99 #996A2D #5C992D
monochromatic
#14113A #241F6A #342D99 #463DC6 #736CD4

Accessibility & contrast

On white

10.60
#342D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#342D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D99
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D99#FFFFFF#000000##FFFFFF
##342D991.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342d99;
/* rgb */ color: rgb(52, 45, 153);
/* oklch */ color: oklch(38.2% 0.169 277.7);
Tailwind
colors: {
  custom: {
    50: '#7967b8',
    500: '#342d99',
    950: '#000000',
  },
}
SCSS
$custom: #342d99;
$custom-light: #7967b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342d99",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 243.889,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38178,
    "c": 0.1685,
    "h": 277.7
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#342D99
secondary
#B5BB67
accent
#DE4AD4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342D99

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

Preview Lab → · Contrast checker → · Palette generator →

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