#342596#342596

#342596 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.173 H 279.5°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#342596
RGBrgb(52, 37, 150)
HSLhsl(248, 60%, 37%)
HSVhsv(248, 75%, 59%)
CMYKcmyk(65.3%, 75.3%, 0%, 41.2%)
CIE-LABlab(24.50, 40.68, -59.26)
CIE-LCHlch(24.50, 71.88, 304.47°)
OKLaboklab(36.69% 0.0287 -0.171)
OKLCHoklch(36.69% 0.173 279.5)
XYZxyz(7.5810, 4.2546, 29.2700)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342596 #879625
analogous
#254E96 #342596 #6D2596
triadic
#342596 #963425 #259634
tetradic
#342596 #96254E #879625 #25966D
square
#342596 #96254E #879625 #25966D
split-complementary
#342596 #966D25 #4E9625
monochromatic
#120D34 #231965 #342596 #4531C7 #6E5ED7

Accessibility & contrast

On white

11.35
#342596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#342596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342596
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342596#FFFFFF#000000##FFFFFF
##3425961.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342596;
/* rgb */ color: rgb(52, 37, 150);
/* oklch */ color: oklch(36.7% 0.173 279.5);
Tailwind
colors: {
  custom: {
    50: '#7962b6',
    500: '#342596',
    950: '#000000',
  },
}
SCSS
$custom: #342596;
$custom-light: #7962b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342596",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 247.965,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36685,
    "c": 0.17344,
    "h": 279.5
  },
  "luminance": 0.04255
}

Semantic roles & 50–950 ramp

primary
#342596
secondary
#AFBC5B
accent
#E444CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342596

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

Preview Lab → · Contrast checker → · Palette generator →

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