#342E57#342E57

#342E57 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.071 H 288.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#342E57
RGBrgb(52, 46, 87)
HSLhsl(249, 31%, 26%)
HSVhsv(249, 47%, 34%)
CMYKcmyk(40.2%, 47.1%, 0%, 65.9%)
CIE-LABlab(21.48, 14.00, -23.93)
CIE-LCHlch(21.48, 27.73, 300.33°)
OKLaboklab(32.86% 0.0226 -0.0674)
OKLCHoklch(32.86% 0.071 288.6)
XYZxyz(4.1130, 3.3721, 9.4491)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E57 #51572E
analogous
#2E3C57 #342E57 #482E57
triadic
#342E57 #57342E #2E5734
tetradic
#342E57 #572E3C #51572E #2E5748
square
#342E57 #572E3C #51572E #2E5748
split-complementary
#342E57 #57482E #3C572E
monochromatic
#0C0B14 #1C192F #342E57 #4C437F #6458A7

Accessibility & contrast

On white

12.54
#342E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342E57
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E57#FFFFFF#000000##FFFFFF
##342E571.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203459
Deuteranopia (green-blind)
#203356
Tritanopia (blue-blind)
#2B363E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342e57;
/* rgb */ color: rgb(52, 46, 87);
/* oklch */ color: oklch(32.9% 0.071 288.6);
Tailwind
colors: {
  custom: {
    50: '#6d6686',
    500: '#342e57',
    950: '#000000',
  },
}
SCSS
$custom: #342e57;
$custom-light: #6d6686;
$custom-dark: #000000;
JSON
{
  "hex": "#342e57",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 87
  },
  "hsl": {
    "h": 248.78,
    "s": 30.827,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32861,
    "c": 0.0711,
    "h": 288.6
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#342E57
secondary
#828958
accent
#C761B8
background
#F6F6F8
surface
#ECEBEF
border
#C7C6CA
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #342E57

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

Preview Lab → · Contrast checker → · Palette generator →

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