#342D59#342D59

#342D59 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.8% C 0.076 H 288.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#342D59
RGBrgb(52, 45, 89)
HSLhsl(250, 33%, 26%)
HSVhsv(250, 49%, 35%)
CMYKcmyk(41.6%, 49.4%, 0%, 65.1%)
CIE-LABlab(21.31, 15.34, -25.52)
CIE-LCHlch(21.31, 29.77, 301.01°)
OKLaboklab(32.78% 0.0245 -0.072)
OKLCHoklch(32.78% 0.076 288.8)
XYZxyz(4.1572, 3.3280, 9.8726)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D59 #52592D
analogous
#2D3C59 #342D59 #4A2D59
triadic
#342D59 #59342D #2D5934
tetradic
#342D59 #592D3C #52592D #2D594A
square
#342D59 #592D3C #52592D #2D594A
split-complementary
#342D59 #594A2D #3C592D
monochromatic
#0C0A14 #1C1830 #342D59 #4C4282 #6457AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342D59#FFFFFF#000000##FFFFFF
##342D591.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)
#1D345B
Deuteranopia (green-blind)
#1D3258
Tritanopia (blue-blind)
#2A363E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342d59;
/* rgb */ color: rgb(52, 45, 89);
/* oklch */ color: oklch(32.8% 0.076 288.8);
Tailwind
colors: {
  custom: {
    50: '#6e6688',
    500: '#342d59',
    950: '#000000',
  },
}
SCSS
$custom: #342d59;
$custom-light: #6e6688;
$custom-dark: #000000;
JSON
{
  "hex": "#342d59",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 89
  },
  "hsl": {
    "h": 249.545,
    "s": 32.836,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32778,
    "c": 0.0761,
    "h": 288.8
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#342D59
secondary
#838B57
accent
#C95FB8
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07050B
muted
#7A7A7C

Preview Lab

Preview with #342D59

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

Preview Lab → · Contrast checker → · Palette generator →

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