#342F4F#342F4F

#342F4F is a dark, muted blue. Relative luminance 0.033; OKLCH L 32.6% C 0.056 H 290.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#342F4F
RGBrgb(52, 47, 79)
HSLhsl(249, 25%, 25%)
HSVhsv(249, 41%, 31%)
CMYKcmyk(34.2%, 40.5%, 0%, 69%)
CIE-LABlab(21.31, 10.80, -18.86)
CIE-LCHlch(21.31, 21.73, 299.80°)
OKLaboklab(32.58% 0.0193 -0.0527)
OKLCHoklch(32.58% 0.056 290.1)
XYZxyz(3.8436, 3.3275, 7.8354)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F4F #4A4F2F
analogous
#2F3A4F #342F4F #442F4F
triadic
#342F4F #4F342F #2F4F34
tetradic
#342F4F #4F2F3A #4A4F2F #2F4F44
square
#342F4F #4F2F3A #4A4F2F #2F4F44
split-complementary
#342F4F #4F442F #3A4F2F
monochromatic
#0D0B13 #1B1829 #342F4F #4D4675 #675D9C

Accessibility & contrast

On white

12.61
#342F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#342F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F4F
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F4F#FFFFFF#000000##FFFFFF
##342F4F1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263450
Deuteranopia (green-blind)
#26324E
Tritanopia (blue-blind)
#2E353B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342f4f;
/* rgb */ color: rgb(52, 47, 79);
/* oklch */ color: oklch(32.6% 0.056 290.1);
Tailwind
colors: {
  custom: {
    50: '#6c6780',
    500: '#342f4f',
    950: '#000000',
  },
}
SCSS
$custom: #342f4f;
$custom-light: #6c6780;
$custom-dark: #000000;
JSON
{
  "hex": "#342f4f",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 79
  },
  "hsl": {
    "h": 249.375,
    "s": 25.397,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32585,
    "c": 0.05607,
    "h": 290.1
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#342F4F
secondary
#7A805A
accent
#C266B3
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07060A
muted
#7A7A7C

Preview Lab

Preview with #342F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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