#342C99#342C99

#342C99 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.170 H 277.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#342C99
RGBrgb(52, 44, 153)
HSLhsl(244, 55%, 39%)
HSVhsv(244, 71%, 60%)
CMYKcmyk(66%, 71.2%, 0%, 40%)
CIE-LABlab(26.25, 37.61, -58.22)
CIE-LCHlch(26.25, 69.31, 302.87°)
OKLaboklab(38.02% 0.0233 -0.168)
OKLCHoklch(38.02% 0.17 277.9)
XYZxyz(8.0648, 4.8307, 30.6382)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C99 #91992C
analogous
#2C5A99 #342C99 #6A2C99
triadic
#342C99 #99342C #2C9934
tetradic
#342C99 #992C5A #91992C #2C996A
square
#342C99 #992C5A #91992C #2C996A
split-complementary
#342C99 #996A2C #5A992C
monochromatic
#14113A #241E69 #342C99 #463BC7 #736BD4

Accessibility & contrast

On white

10.68
#342C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#342C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C99
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C99#FFFFFF#000000##FFFFFF
##342C991.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342c99;
/* rgb */ color: rgb(52, 44, 153);
/* oklch */ color: oklch(38.0% 0.170 277.9);
Tailwind
colors: {
  custom: {
    50: '#7966b8',
    500: '#342c99',
    950: '#000000',
  },
}
SCSS
$custom: #342c99;
$custom-light: #7966b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342c99",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 244.404,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38022,
    "c": 0.16964,
    "h": 277.9
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#342C99
secondary
#B5BB66
accent
#DF49D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C99

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

Preview Lab → · Contrast checker → · Palette generator →

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