#342396#342396

#342396 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.175 H 279.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#342396
RGBrgb(52, 35, 150)
HSLhsl(249, 62%, 36%)
HSVhsv(249, 77%, 59%)
CMYKcmyk(65.3%, 76.7%, 0%, 41.2%)
CIE-LABlab(24.11, 41.78, -59.90)
CIE-LCHlch(24.11, 73.03, 304.89°)
OKLaboklab(36.41% 0.0301 -0.1729)
OKLCHoklch(36.41% 0.175 279.9)
XYZxyz(7.5205, 4.1335, 29.2498)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342396 #859623
analogous
#234C96 #342396 #6E2396
triadic
#342396 #963423 #239634
tetradic
#342396 #96234C #859623 #23966E
square
#342396 #96234C #859623 #23966E
split-complementary
#342396 #966E23 #4C9623
monochromatic
#120C33 #231764 #342396 #452FC8 #6D5BD9

Accessibility & contrast

On white

11.50
#342396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342396
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342396#FFFFFF#000000##FFFFFF
##3423961.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342396;
/* rgb */ color: rgb(52, 35, 150);
/* oklch */ color: oklch(36.4% 0.175 279.9);
Tailwind
colors: {
  custom: {
    50: '#7961b6',
    500: '#342396',
    950: '#000000',
  },
}
SCSS
$custom: #342396;
$custom-light: #7961b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342396",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 248.87,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36412,
    "c": 0.17548,
    "h": 279.9
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#342396
secondary
#AEBD58
accent
#E543CD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342396

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

Preview Lab → · Contrast checker → · Palette generator →

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