#342196#342196

#342196 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.177 H 280.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#342196
RGBrgb(52, 33, 150)
HSLhsl(250, 64%, 36%)
HSVhsv(250, 78%, 59%)
CMYKcmyk(65.3%, 78%, 0%, 41.2%)
CIE-LABlab(23.73, 42.84, -60.51)
CIE-LCHlch(23.73, 74.14, 305.30°)
OKLaboklab(36.15% 0.0313 -0.1747)
OKLCHoklch(36.15% 0.177 280.2)
XYZxyz(7.4633, 4.0192, 29.2307)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342196 #839621
analogous
#214896 #342196 #6E2196
triadic
#342196 #963421 #219634
tetradic
#342196 #962148 #839621 #21966E
square
#342196 #962148 #839621 #21966E
split-complementary
#342196 #966E21 #489621
monochromatic
#110B32 #231664 #342196 #452CC8 #6D57DA

Accessibility & contrast

On white

11.64
#342196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342196
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342196#FFFFFF#000000##FFFFFF
##3421961.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342196;
/* rgb */ color: rgb(52, 33, 150);
/* oklch */ color: oklch(36.1% 0.177 280.2);
Tailwind
colors: {
  custom: {
    50: '#795fb6',
    500: '#342196',
    950: '#000000',
  },
}
SCSS
$custom: #342196;
$custom-light: #795fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#342196",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 249.744,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36149,
    "c": 0.17744,
    "h": 280.2
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#342196
secondary
#ADBE55
accent
#E741CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342196

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

Preview Lab → · Contrast checker → · Palette generator →

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