#342587#342587

#342587 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.154 H 282.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#342587
RGBrgb(52, 37, 135)
HSLhsl(249, 57%, 34%)
HSVhsv(249, 73%, 53%)
CMYKcmyk(61.5%, 72.6%, 0%, 47.1%)
CIE-LABlab(23.01, 35.81, -52.39)
CIE-LCHlch(23.01, 63.46, 304.35°)
OKLaboklab(35.17% 0.032 -0.151)
OKLCHoklch(35.17% 0.154 282)
XYZxyz(6.4496, 3.8020, 23.3110)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342587 #788725
analogous
#254787 #342587 #652587
triadic
#342587 #873425 #258734
tetradic
#342587 #872547 #788725 #258765
square
#342587 #872547 #788725 #258765
split-complementary
#342587 #876525 #478725
monochromatic
#0F0B27 #211857 #342587 #4732B7 #6956D1

Accessibility & contrast

On white

11.93
#342587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#342587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342587
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342587#FFFFFF#000000##FFFFFF
##3425871.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342587;
/* rgb */ color: rgb(52, 37, 135);
/* oklch */ color: oklch(35.2% 0.154 282.0);
Tailwind
colors: {
  custom: {
    50: '#7661ab',
    500: '#342587',
    950: '#000000',
  },
}
SCSS
$custom: #342587;
$custom-light: #7661ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342587",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 249.184,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35175,
    "c": 0.15432,
    "h": 282
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

primary
#342587
secondary
#A6B553
accent
#E048C9
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342587

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

Preview Lab → · Contrast checker → · Palette generator →

#342587 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva