#342C8B#342C8B

#342C8B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.151 H 279.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#342C8B
RGBrgb(52, 44, 139)
HSLhsl(245, 52%, 36%)
HSVhsv(245, 68%, 55%)
CMYKcmyk(62.6%, 68.3%, 0%, 45.5%)
CIE-LABlab(24.94, 32.89, -51.73)
CIE-LCHlch(24.94, 61.30, 302.45°)
OKLaboklab(36.68% 0.0254 -0.149)
OKLCHoklch(36.68% 0.151 279.7)
XYZxyz(6.9756, 4.3950, 24.9018)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C8B #838B2C
analogous
#2C538B #342C8B #632C8B
triadic
#342C8B #8B342C #2C8B34
tetradic
#342C8B #8B2C53 #838B2C #2C8B63
square
#342C8B #8B2C53 #838B2C #2C8B63
split-complementary
#342C8B #8B632C #538B2C
monochromatic
#110F2E #231D5D #342C8B #453BB9 #6D64CE

Accessibility & contrast

On white

11.17
#342C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#342C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C8B
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C8B#FFFFFF#000000##FFFFFF
##342C8B1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342c8b;
/* rgb */ color: rgb(52, 44, 139);
/* oklch */ color: oklch(36.7% 0.151 279.7);
Tailwind
colors: {
  custom: {
    50: '#7666ae',
    500: '#342c8b',
    950: '#000000',
  },
}
SCSS
$custom: #342c8b;
$custom-light: #7666ae;
$custom-dark: #000000;
JSON
{
  "hex": "#342c8b",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 245.053,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36677,
    "c": 0.15118,
    "h": 279.7
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

primary
#342C8B
secondary
#ADB45F
accent
#DB4CCF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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