#342B96#342B96

#342B96 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.167 H 278.4°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#342B96
RGBrgb(52, 43, 150)
HSLhsl(245, 55%, 38%)
HSVhsv(245, 71%, 59%)
CMYKcmyk(65.3%, 71.3%, 0%, 41.2%)
CIE-LABlab(25.74, 37.21, -57.21)
CIE-LCHlch(25.74, 68.25, 303.04°)
OKLaboklab(37.57% 0.0245 -0.1651)
OKLCHoklch(37.57% 0.167 278.4)
XYZxyz(7.7833, 4.6592, 29.3374)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B96 #8D962B
analogous
#2B5796 #342B96 #6A2B96
triadic
#342B96 #96342B #2B9634
tetradic
#342B96 #962B57 #8D962B #2B966A
square
#342B96 #962B57 #8D962B #2B966A
split-complementary
#342B96 #966A2B #57962B
monochromatic
#131037 #241D66 #342B96 #4439C6 #7168D4

Accessibility & contrast

On white

10.87
#342B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#342B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B96
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B96#FFFFFF#000000##FFFFFF
##342B961.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342b96;
/* rgb */ color: rgb(52, 43, 150);
/* oklch */ color: oklch(37.6% 0.167 278.4);
Tailwind
colors: {
  custom: {
    50: '#7866b6',
    500: '#342b96',
    950: '#000000',
  },
}
SCSS
$custom: #342b96;
$custom-light: #7866b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342b96",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 245.047,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37571,
    "c": 0.16689,
    "h": 278.4
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#342B96
secondary
#B3BA63
accent
#DF49D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342B96

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

Preview Lab → · Contrast checker → · Palette generator →

#342B96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva