#342987#342987

#342987 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.150 H 281.0°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#342987
RGBrgb(52, 41, 135)
HSLhsl(247, 53%, 35%)
HSVhsv(247, 70%, 53%)
CMYKcmyk(61.5%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.88, 33.40, -50.95)
CIE-LCHlch(23.88, 60.93, 303.24°)
OKLaboklab(35.81% 0.0286 -0.1468)
OKLCHoklch(35.81% 0.15 281)
XYZxyz(6.5809, 4.0647, 23.3548)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342987 #7C8729
analogous
#294D87 #342987 #632987
triadic
#342987 #873429 #298734
tetradic
#342987 #87294D #7C8729 #298763
square
#342987 #87294D #7C8729 #298763
split-complementary
#342987 #876329 #4D8729
monochromatic
#100C29 #221B58 #342987 #4637B6 #6A5DCE

Accessibility & contrast

On white

11.58
#342987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342987
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342987#FFFFFF#000000##FFFFFF
##3429871.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342987;
/* rgb */ color: rgb(52, 41, 135);
/* oklch */ color: oklch(35.8% 0.150 281.0);
Tailwind
colors: {
  custom: {
    50: '#7664ab',
    500: '#342987',
    950: '#000000',
  },
}
SCSS
$custom: #342987;
$custom-light: #7664ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342987",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 247.021,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35805,
    "c": 0.14952,
    "h": 281
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#342987
secondary
#A9B359
accent
#DD4BCC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342987

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

Preview Lab → · Contrast checker → · Palette generator →

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