#342884#342884

#342884 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.147 H 281.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#342884
RGBrgb(52, 40, 132)
HSLhsl(248, 53%, 34%)
HSVhsv(248, 70%, 52%)
CMYKcmyk(60.6%, 69.7%, 0%, 48.2%)
CIE-LABlab(23.38, 33.01, -49.90)
CIE-LCHlch(23.38, 59.83, 303.49°)
OKLaboklab(35.36% 0.0299 -0.1437)
OKLCHoklch(35.36% 0.147 281.8)
XYZxyz(6.3385, 3.9132, 22.2466)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342884 #788428
analogous
#284A84 #342884 #622884
triadic
#342884 #843428 #288434
tetradic
#342884 #84284A #788428 #288462
square
#342884 #84284A #788428 #288462
split-complementary
#342884 #846228 #4A8428
monochromatic
#0F0C26 #211A55 #342884 #4736B3 #695ACD

Accessibility & contrast

On white

11.78
#342884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#342884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342884
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342884#FFFFFF#000000##FFFFFF
##3428841.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003482
Tritanopia (blue-blind)
#014052
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342884;
/* rgb */ color: rgb(52, 40, 132);
/* oklch */ color: oklch(35.4% 0.147 281.8);
Tailwind
colors: {
  custom: {
    50: '#7563a9',
    500: '#342884',
    950: '#000000',
  },
}
SCSS
$custom: #342884;
$custom-light: #7563a9;
$custom-dark: #000000;
JSON
{
  "hex": "#342884",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 247.826,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35359,
    "c": 0.14674,
    "h": 281.8
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#342884
secondary
#A6B256
accent
#DD4BCA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342884

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

Preview Lab → · Contrast checker → · Palette generator →

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