#342595#342595

#342595 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.172 H 279.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#342595
RGBrgb(52, 37, 149)
HSLhsl(248, 60%, 36%)
HSVhsv(248, 75%, 58%)
CMYKcmyk(65.1%, 75.2%, 0%, 41.6%)
CIE-LABlab(24.39, 40.36, -58.81)
CIE-LCHlch(24.39, 71.32, 304.46°)
OKLaboklab(36.58% 0.029 -0.1697)
OKLCHoklch(36.58% 0.172 279.7)
XYZxyz(7.5008, 4.2225, 28.8477)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342595 #869525
analogous
#254E95 #342595 #6C2595
triadic
#342595 #953425 #259534
tetradic
#342595 #95254E #869525 #25956C
square
#342595 #95254E #869525 #25956C
split-complementary
#342595 #956C25 #4E9525
monochromatic
#120D33 #231964 #342595 #4531C6 #6E5ED7

Accessibility & contrast

On white

11.38
#342595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#342595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342595
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342595#FFFFFF#000000##FFFFFF
##3425951.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342595;
/* rgb */ color: rgb(52, 37, 149);
/* oklch */ color: oklch(36.6% 0.172 279.7);
Tailwind
colors: {
  custom: {
    50: '#7962b5',
    500: '#342595',
    950: '#000000',
  },
}
SCSS
$custom: #342595;
$custom-light: #7962b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342595",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 248.036,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36582,
    "c": 0.17218,
    "h": 279.7
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#342595
secondary
#AFBC5A
accent
#E344CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342595

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

Preview Lab → · Contrast checker → · Palette generator →

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