#342985#342985

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

Color values

HEX#342985
RGBrgb(52, 41, 133)
HSLhsl(247, 53%, 34%)
HSVhsv(247, 69%, 52%)
CMYKcmyk(60.9%, 69.2%, 0%, 47.8%)
CIE-LABlab(23.70, 32.73, -50.00)
CIE-LCHlch(23.70, 59.76, 303.21°)
OKLaboklab(35.62% 0.0289 -0.144)
OKLCHoklch(35.62% 0.147 281.3)
XYZxyz(6.4414, 4.0090, 22.6201)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342985 #7A8529
analogous
#294C85 #342985 #622985
triadic
#342985 #853429 #298534
tetradic
#342985 #85294C #7A8529 #298562
square
#342985 #85294C #7A8529 #298562
split-complementary
#342985 #856229 #4C8529
monochromatic
#0F0C27 #221B56 #342985 #4637B4 #695CCD

Accessibility & contrast

On white

11.66
#342985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342985
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342985#FFFFFF#000000##FFFFFF
##3429851.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342985;
/* rgb */ color: rgb(52, 41, 133);
/* oklch */ color: oklch(35.6% 0.147 281.3);
Tailwind
colors: {
  custom: {
    50: '#7564a9',
    500: '#342985',
    950: '#000000',
  },
}
SCSS
$custom: #342985;
$custom-light: #7564a9;
$custom-dark: #000000;
JSON
{
  "hex": "#342985",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 247.174,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35617,
    "c": 0.14683,
    "h": 281.3
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#342985
secondary
#A7B258
accent
#DC4CCB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342985

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

Preview Lab → · Contrast checker → · Palette generator →

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