#342A6A#342A6A

#342A6A is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.4% C 0.107 H 286.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#342A6A
RGBrgb(52, 42, 106)
HSLhsl(249, 43%, 29%)
HSVhsv(249, 60%, 42%)
CMYKcmyk(50.9%, 60.4%, 0%, 58.4%)
CIE-LABlab(21.68, 22.99, -36.08)
CIE-LCHlch(21.68, 42.78, 302.51°)
OKLaboklab(33.43% 0.03 -0.103)
OKLCHoklch(33.43% 0.107 286.2)
XYZxyz(4.8449, 3.4264, 14.0389)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A6A #606A2A
analogous
#2A406A #342A6A #542A6A
triadic
#342A6A #6A342A #2A6A34
tetradic
#342A6A #6A2A40 #606A2A #2A6A54
square
#342A6A #6A2A40 #606A2A #2A6A54
split-complementary
#342A6A #6A542A #406A2A
monochromatic
#0B0916 #1E193E #342A6A #4A3B96 #6453BB

Accessibility & contrast

On white

12.46
#342A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#342A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A6A
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A6A#FFFFFF#000000##FFFFFF
##342A6A1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366C
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#213845
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342a6a;
/* rgb */ color: rgb(52, 42, 106);
/* oklch */ color: oklch(33.4% 0.107 286.2);
Tailwind
colors: {
  custom: {
    50: '#706495',
    500: '#342a6a',
    950: '#000000',
  },
}
SCSS
$custom: #342a6a;
$custom-light: #706495;
$custom-dark: #000000;
JSON
{
  "hex": "#342a6a",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 106
  },
  "hsl": {
    "h": 249.375,
    "s": 43.243,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33429,
    "c": 0.10731,
    "h": 286.2
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#342A6A
secondary
#919C54
accent
#D355BF
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #342A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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