#342885#342885

#342885 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.148 H 281.6°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#342885
RGBrgb(52, 40, 133)
HSLhsl(248, 54%, 34%)
HSVhsv(248, 70%, 52%)
CMYKcmyk(60.9%, 69.9%, 0%, 47.8%)
CIE-LABlab(23.47, 33.34, -50.37)
CIE-LCHlch(23.47, 60.41, 303.50°)
OKLaboklab(35.45% 0.0298 -0.1451)
OKLCHoklch(35.45% 0.148 281.6)
XYZxyz(6.4073, 3.9407, 22.6087)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342885 #798528
analogous
#284B85 #342885 #632885
triadic
#342885 #853428 #288534
tetradic
#342885 #85284B #798528 #288563
square
#342885 #85284B #798528 #288563
split-complementary
#342885 #856328 #4B8528
monochromatic
#0F0C27 #221A56 #342885 #4636B4 #695ACD

Accessibility & contrast

On white

11.74
#342885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#342885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342885
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342885#FFFFFF#000000##FFFFFF
##3428851.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003583
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342885;
/* rgb */ color: rgb(52, 40, 133);
/* oklch */ color: oklch(35.5% 0.148 281.6);
Tailwind
colors: {
  custom: {
    50: '#7563a9',
    500: '#342885',
    950: '#000000',
  },
}
SCSS
$custom: #342885;
$custom-light: #7563a9;
$custom-dark: #000000;
JSON
{
  "hex": "#342885",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 247.742,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35453,
    "c": 0.14808,
    "h": 281.6
  },
  "luminance": 0.03941
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342885

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

Preview Lab → · Contrast checker → · Palette generator →

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