#342C9D#342C9D

#342C9D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.175 H 277.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#342C9D
RGBrgb(52, 44, 157)
HSLhsl(244, 56%, 39%)
HSVhsv(244, 72%, 62%)
CMYKcmyk(66.9%, 72%, 0%, 38.4%)
CIE-LABlab(26.63, 38.95, -60.03)
CIE-LCHlch(26.63, 71.56, 302.98°)
OKLaboklab(38.42% 0.0226 -0.1733)
OKLCHoklch(38.42% 0.175 277.4)
XYZxyz(8.4007, 4.9650, 32.4074)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C9D #959D2C
analogous
#2C5D9D #342C9D #6D2C9D
triadic
#342C9D #9D342C #2C9D34
tetradic
#342C9D #9D2C5D #959D2C #2C9D6D
square
#342C9D #9D2C5D #959D2C #2C9D6D
split-complementary
#342C9D #9D6D2C #5D9D2C
monochromatic
#14113D #241F6D #342C9D #473DC9 #756DD6

Accessibility & contrast

On white

10.54
#342C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C9D
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C9D#FFFFFF#000000##FFFFFF
##342C9D1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342c9d;
/* rgb */ color: rgb(52, 44, 157);
/* oklch */ color: oklch(38.4% 0.175 277.4);
Tailwind
colors: {
  custom: {
    50: '#7a66bb',
    500: '#342c9d',
    950: '#000000',
  },
}
SCSS
$custom: #342c9d;
$custom-light: #7a66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#342c9d",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 244.248,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38417,
    "c": 0.17478,
    "h": 277.4
  },
  "luminance": 0.04966
}

Semantic roles & 50–950 ramp

primary
#342C9D
secondary
#B7BD68
accent
#E048D5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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