#342C9B#342C9B

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

Color values

HEX#342C9B
RGBrgb(52, 44, 155)
HSLhsl(244, 56%, 39%)
HSVhsv(244, 72%, 61%)
CMYKcmyk(66.5%, 71.6%, 0%, 39.2%)
CIE-LABlab(26.44, 38.28, -59.12)
CIE-LCHlch(26.44, 70.44, 302.92°)
OKLaboklab(38.22% 0.0229 -0.1707)
OKLCHoklch(38.22% 0.172 277.6)
XYZxyz(8.2313, 4.8973, 31.5155)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C9B #939B2C
analogous
#2C5C9B #342C9B #6C2C9B
triadic
#342C9B #9B342C #2C9B34
tetradic
#342C9B #9B2C5C #939B2C #2C9B6C
square
#342C9B #9B2C5C #939B2C #2C9B6C
split-complementary
#342C9B #9B6C2C #5C9B2C
monochromatic
#14113C #241E6B #342C9B #463CC8 #746CD5

Accessibility & contrast

On white

10.61
#342C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C9B
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C9B#FFFFFF#000000##FFFFFF
##342C9B1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342c9b;
/* rgb */ color: rgb(52, 44, 155);
/* oklch */ color: oklch(38.2% 0.172 277.6);
Tailwind
colors: {
  custom: {
    50: '#7966ba',
    500: '#342c9b',
    950: '#000000',
  },
}
SCSS
$custom: #342c9b;
$custom-light: #7966ba;
$custom-dark: #000000;
JSON
{
  "hex": "#342c9b",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 244.324,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38219,
    "c": 0.17222,
    "h": 277.6
  },
  "luminance": 0.04898
}

Semantic roles & 50–950 ramp

primary
#342C9B
secondary
#B6BC67
accent
#DF49D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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