#342986#342986

#342986 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.148 H 281.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#342986
RGBrgb(52, 41, 134)
HSLhsl(247, 53%, 34%)
HSVhsv(247, 69%, 53%)
CMYKcmyk(61.2%, 69.4%, 0%, 47.5%)
CIE-LABlab(23.79, 33.06, -50.48)
CIE-LCHlch(23.79, 60.34, 303.22°)
OKLaboklab(35.71% 0.0287 -0.1454)
OKLCHoklch(35.71% 0.148 281.2)
XYZxyz(6.5108, 4.0367, 22.9857)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342986 #7B8629
analogous
#294D86 #342986 #632986
triadic
#342986 #863429 #298634
tetradic
#342986 #86294D #7B8629 #298663
square
#342986 #86294D #7B8629 #298663
split-complementary
#342986 #866329 #4D8629
monochromatic
#100C28 #221B57 #342986 #4637B5 #6A5CCD

Accessibility & contrast

On white

11.62
#342986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342986
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342986#FFFFFF#000000##FFFFFF
##3429861.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342986;
/* rgb */ color: rgb(52, 41, 134);
/* oklch */ color: oklch(35.7% 0.148 281.2);
Tailwind
colors: {
  custom: {
    50: '#7564aa',
    500: '#342986',
    950: '#000000',
  },
}
SCSS
$custom: #342986;
$custom-light: #7564aa;
$custom-dark: #000000;
JSON
{
  "hex": "#342986",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 247.097,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35711,
    "c": 0.14818,
    "h": 281.2
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#342986
secondary
#A8B358
accent
#DD4BCB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342986

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

Preview Lab → · Contrast checker → · Palette generator →

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