#342D62#342D62

#342D62 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.090 H 286.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#342D62
RGBrgb(52, 45, 98)
HSLhsl(248, 37%, 28%)
HSVhsv(248, 54%, 38%)
CMYKcmyk(46.9%, 54.1%, 0%, 61.6%)
CIE-LABlab(21.90, 18.29, -30.50)
CIE-LCHlch(21.90, 35.57, 300.95°)
OKLaboklab(33.41% 0.0256 -0.0866)
OKLCHoklch(33.41% 0.09 286.5)
XYZxyz(4.5585, 3.4885, 11.9861)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D62 #5B622D
analogous
#2D4062 #342D62 #4E2D62
triadic
#342D62 #62342D #2D6234
tetradic
#342D62 #622D40 #5B622D #2D624E
square
#342D62 #622D40 #5B622D #2D624E
split-complementary
#342D62 #624E2D #40622D
monochromatic
#0B0A15 #1E1A38 #342D62 #4A408C #6357B2

Accessibility & contrast

On white

12.37
#342D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#342D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D62
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D62#FFFFFF#000000##FFFFFF
##342D621.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163664
Deuteranopia (green-blind)
#153361
Tritanopia (blue-blind)
#263843
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342d62;
/* rgb */ color: rgb(52, 45, 98);
/* oklch */ color: oklch(33.4% 0.090 286.5);
Tailwind
colors: {
  custom: {
    50: '#6f668f',
    500: '#342d62',
    950: '#000000',
  },
}
SCSS
$custom: #342d62;
$custom-light: #6f668f;
$custom-dark: #000000;
JSON
{
  "hex": "#342d62",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 98
  },
  "hsl": {
    "h": 247.925,
    "s": 37.063,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33412,
    "c": 0.09035,
    "h": 286.5
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#342D62
secondary
#8C9457
accent
#CD5BBE
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07050C
muted
#7A7A7D

Preview Lab

Preview with #342D62

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

Preview Lab → · Contrast checker → · Palette generator →

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