#342C6B#342C6B

#342C6B is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.106 H 285.0°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#342C6B
RGBrgb(52, 44, 107)
HSLhsl(248, 42%, 30%)
HSVhsv(248, 59%, 42%)
CMYKcmyk(51.4%, 58.9%, 0%, 58%)
CIE-LABlab(22.28, 21.99, -35.76)
CIE-LCHlch(22.28, 41.98, 301.58°)
OKLaboklab(33.9% 0.0274 -0.1021)
OKLCHoklch(33.9% 0.106 285)
XYZxyz(4.9699, 3.5927, 14.3387)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C6B #636B2C
analogous
#2C446B #342C6B #542C6B
triadic
#342C6B #6B342C #2C6B34
tetradic
#342C6B #6B2C44 #636B2C #2C6B54
square
#342C6B #6B2C44 #636B2C #2C6B54
split-complementary
#342C6B #6B542C #446B2C
monochromatic
#0B0916 #1F1A40 #342C6B #493E96 #6457BA

Accessibility & contrast

On white

12.22
#342C6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342C6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C6B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C6B#FFFFFF#000000##FFFFFF
##342C6B1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05376D
Deuteranopia (green-blind)
#03336A
Tritanopia (blue-blind)
#213A47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342c6b;
/* rgb */ color: rgb(52, 44, 107);
/* oklch */ color: oklch(33.9% 0.106 285.0);
Tailwind
colors: {
  custom: {
    50: '#706596',
    500: '#342c6b',
    950: '#000000',
  },
}
SCSS
$custom: #342c6b;
$custom-light: #706596;
$custom-dark: #000000;
JSON
{
  "hex": "#342c6b",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 107
  },
  "hsl": {
    "h": 247.619,
    "s": 41.722,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33897,
    "c": 0.10572,
    "h": 285
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#342C6B
secondary
#949D56
accent
#D256C2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050D
muted
#7B7A7E

Preview Lab

Preview with #342C6B

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

Preview Lab → · Contrast checker → · Palette generator →

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