#342C9C#342C9C

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

Color values

HEX#342C9C
RGBrgb(52, 44, 156)
HSLhsl(244, 56%, 39%)
HSVhsv(244, 72%, 61%)
CMYKcmyk(66.7%, 71.8%, 0%, 38.8%)
CIE-LABlab(26.54, 38.62, -59.58)
CIE-LCHlch(26.54, 71.00, 302.95°)
OKLaboklab(38.32% 0.0228 -0.172)
OKLCHoklch(38.32% 0.174 277.5)
XYZxyz(8.3157, 4.9310, 31.9596)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C9C #949C2C
analogous
#2C5C9C #342C9C #6C2C9C
triadic
#342C9C #9C342C #2C9C34
tetradic
#342C9C #9C2C5C #949C2C #2C9C6C
square
#342C9C #9C2C5C #949C2C #2C9C6C
split-complementary
#342C9C #9C6C2C #5C9C2C
monochromatic
#14113D #241F6C #342C9C #473DC8 #746DD6

Accessibility & contrast

On white

10.57
#342C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C9C
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C9C#FFFFFF#000000##FFFFFF
##342C9C1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342c9c;
/* rgb */ color: rgb(52, 44, 156);
/* oklch */ color: oklch(38.3% 0.173 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a66ba',
    500: '#342c9c',
    950: '#000000',
  },
}
SCSS
$custom: #342c9c;
$custom-light: #7a66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#342c9c",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 244.286,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38318,
    "c": 0.1735,
    "h": 277.5
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#342C9C
secondary
#B7BD67
accent
#DF49D5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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