#342B62#342B62

#342B62 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 33.0% C 0.094 H 287.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#342B62
RGBrgb(52, 43, 98)
HSLhsl(250, 39%, 28%)
HSVhsv(250, 56%, 38%)
CMYKcmyk(46.9%, 56.1%, 0%, 61.6%)
CIE-LABlab(21.36, 19.65, -31.38)
CIE-LCHlch(21.36, 37.03, 302.06°)
OKLaboklab(33% 0.0284 -0.0892)
OKLCHoklch(33% 0.094 287.6)
XYZxyz(4.4840, 3.3395, 11.9612)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B62 #59622B
analogous
#2B3E62 #342B62 #4F2B62
triadic
#342B62 #62342B #2B6234
tetradic
#342B62 #622B3E #59622B #2B624F
square
#342B62 #622B3E #59622B #2B624F
split-complementary
#342B62 #624F2B #3E622B
monochromatic
#0B0915 #1D1837 #342B62 #4B3E8D #6354B4

Accessibility & contrast

On white

12.59
#342B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B62
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B62#FFFFFF#000000##FFFFFF
##342B621.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113564
Deuteranopia (green-blind)
#113261
Tritanopia (blue-blind)
#263742
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342b62;
/* rgb */ color: rgb(52, 43, 98);
/* oklch */ color: oklch(33.0% 0.094 287.6);
Tailwind
colors: {
  custom: {
    50: '#6f648f',
    500: '#342b62',
    950: '#000000',
  },
}
SCSS
$custom: #342b62;
$custom-light: #6f648f;
$custom-dark: #000000;
JSON
{
  "hex": "#342b62",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 98
  },
  "hsl": {
    "h": 249.818,
    "s": 39.007,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33003,
    "c": 0.09364,
    "h": 287.6
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#342B62
secondary
#8A9455
accent
#CF59BC
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07050C
muted
#7A7A7D

Preview Lab

Preview with #342B62

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

Preview Lab → · Contrast checker → · Palette generator →

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