#342D58#342D58

#342D58 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.7% C 0.074 H 289.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#342D58
RGBrgb(52, 45, 88)
HSLhsl(250, 32%, 26%)
HSVhsv(250, 49%, 35%)
CMYKcmyk(40.9%, 48.9%, 0%, 65.5%)
CIE-LABlab(21.25, 15.02, -24.96)
CIE-LCHlch(21.25, 29.12, 301.04°)
OKLaboklab(32.71% 0.0244 -0.0704)
OKLCHoklch(32.71% 0.074 289.1)
XYZxyz(4.1155, 3.3113, 9.6529)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D58 #51582D
analogous
#2D3B58 #342D58 #492D58
triadic
#342D58 #58342D #2D5834
tetradic
#342D58 #582D3B #51582D #2D5849
square
#342D58 #582D3B #51582D #2D5849
split-complementary
#342D58 #58492D #3B582D
monochromatic
#0C0A14 #1C1830 #342D58 #4C4280 #6457A9

Accessibility & contrast

On white

12.63
#342D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#342D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D58
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D58#FFFFFF#000000##FFFFFF
##342D581.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345A
Deuteranopia (green-blind)
#1E3257
Tritanopia (blue-blind)
#2B353E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342d58;
/* rgb */ color: rgb(52, 45, 88);
/* oklch */ color: oklch(32.7% 0.074 289.1);
Tailwind
colors: {
  custom: {
    50: '#6d6687',
    500: '#342d58',
    950: '#000000',
  },
}
SCSS
$custom: #342d58;
$custom-light: #6d6687;
$custom-dark: #000000;
JSON
{
  "hex": "#342d58",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 88
  },
  "hsl": {
    "h": 249.767,
    "s": 32.331,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3271,
    "c": 0.07448,
    "h": 289.1
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#342D58
secondary
#828A57
accent
#C85FB7
background
#F6F6F8
surface
#ECEBEF
border
#C7C6CA
text
#07050B
muted
#7A7A7C

Preview Lab

Preview with #342D58

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

Preview Lab → · Contrast checker → · Palette generator →

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