#342687#342687

#342687 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.153 H 281.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#342687
RGBrgb(52, 38, 135)
HSLhsl(249, 56%, 34%)
HSVhsv(249, 72%, 53%)
CMYKcmyk(61.5%, 71.9%, 0%, 47.1%)
CIE-LABlab(23.22, 35.22, -52.04)
CIE-LCHlch(23.22, 62.84, 304.09°)
OKLaboklab(35.33% 0.0311 -0.1499)
OKLCHoklch(35.33% 0.153 281.7)
XYZxyz(6.4811, 3.8651, 23.3215)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342687 #798726
analogous
#264987 #342687 #652687
triadic
#342687 #873426 #268734
tetradic
#342687 #872649 #798726 #268765
square
#342687 #872649 #798726 #268765
split-complementary
#342687 #876526 #498726
monochromatic
#0F0B27 #221957 #342687 #4633B7 #6958D0

Accessibility & contrast

On white

11.84
#342687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#342687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342687
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342687#FFFFFF#000000##FFFFFF
##3426871.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342687;
/* rgb */ color: rgb(52, 38, 135);
/* oklch */ color: oklch(35.3% 0.153 281.7);
Tailwind
colors: {
  custom: {
    50: '#7662ab',
    500: '#342687',
    950: '#000000',
  },
}
SCSS
$custom: #342687;
$custom-light: #7662ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342687",
  "rgb": {
    "r": 52,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 248.66,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35329,
    "c": 0.15315,
    "h": 281.7
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#342687
secondary
#A7B554
accent
#DF48CA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342687

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

Preview Lab → · Contrast checker → · Palette generator →

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