#342887#342887

#342887 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.151 H 281.3°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#342887
RGBrgb(52, 40, 135)
HSLhsl(248, 54%, 34%)
HSVhsv(248, 70%, 53%)
CMYKcmyk(61.5%, 70.4%, 0%, 47.1%)
CIE-LABlab(23.66, 34.01, -51.32)
CIE-LCHlch(23.66, 61.57, 303.53°)
OKLaboklab(35.64% 0.0294 -0.1478)
OKLCHoklch(35.64% 0.151 281.3)
XYZxyz(6.5468, 3.9965, 23.3434)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342887 #7B8728
analogous
#284C87 #342887 #642887
triadic
#342887 #873428 #288734
tetradic
#342887 #87284C #7B8728 #288764
square
#342887 #87284C #7B8728 #288764
split-complementary
#342887 #876428 #4C8728
monochromatic
#100C29 #221A58 #342887 #4636B6 #6A5BCE

Accessibility & contrast

On white

11.67
#342887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342887
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342887#FFFFFF#000000##FFFFFF
##3428871.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342887;
/* rgb */ color: rgb(52, 40, 135);
/* oklch */ color: oklch(35.6% 0.151 281.3);
Tailwind
colors: {
  custom: {
    50: '#7663ab',
    500: '#342887',
    950: '#000000',
  },
}
SCSS
$custom: #342887;
$custom-light: #7663ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342887",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 247.579,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35644,
    "c": 0.15074,
    "h": 281.3
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#342887
secondary
#A8B457
accent
#DE4ACB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342887

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

Preview Lab → · Contrast checker → · Palette generator →

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