#342696#342696

#342696 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.172 H 279.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#342696
RGBrgb(52, 38, 150)
HSLhsl(248, 60%, 37%)
HSVhsv(248, 75%, 59%)
CMYKcmyk(65.3%, 74.7%, 0%, 41.2%)
CIE-LABlab(24.70, 40.12, -58.93)
CIE-LCHlch(24.70, 71.29, 304.25°)
OKLaboklab(36.83% 0.0281 -0.1701)
OKLCHoklch(36.83% 0.172 279.4)
XYZxyz(7.6125, 4.3177, 29.2805)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342696 #889626
analogous
#265096 #342696 #6C2696
triadic
#342696 #963426 #269634
tetradic
#342696 #962650 #889626 #26966C
square
#342696 #962650 #889626 #26966C
split-complementary
#342696 #966C26 #509626
monochromatic
#120D34 #231A65 #342696 #4532C7 #6F60D7

Accessibility & contrast

On white

11.27
#342696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342696
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342696#FFFFFF#000000##FFFFFF
##3426961.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342696;
/* rgb */ color: rgb(52, 38, 150);
/* oklch */ color: oklch(36.8% 0.172 279.4);
Tailwind
colors: {
  custom: {
    50: '#7962b6',
    500: '#342696',
    950: '#000000',
  },
}
SCSS
$custom: #342696;
$custom-light: #7962b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342696",
  "rgb": {
    "r": 52,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 247.5,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36826,
    "c": 0.17239,
    "h": 279.4
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#342696
secondary
#B0BC5C
accent
#E345CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342696

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

Preview Lab → · Contrast checker → · Palette generator →

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