#342C96#342C96

#342C96 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.166 H 278.2°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#342C96
RGBrgb(52, 44, 150)
HSLhsl(245, 55%, 38%)
HSVhsv(245, 71%, 59%)
CMYKcmyk(65.3%, 70.7%, 0%, 41.2%)
CIE-LABlab(25.96, 36.61, -56.85)
CIE-LCHlch(25.96, 67.62, 302.78°)
OKLaboklab(37.73% 0.0238 -0.164)
OKLCHoklch(37.73% 0.166 278.2)
XYZxyz(7.8201, 4.7328, 29.3497)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C96 #8E962C
analogous
#2C5996 #342C96 #692C96
triadic
#342C96 #96342C #2C9634
tetradic
#342C96 #962C59 #8E962C #2C9669
square
#342C96 #962C59 #8E962C #2C9669
split-complementary
#342C96 #96692C #59962C
monochromatic
#131037 #241E67 #342C96 #443AC5 #7169D3

Accessibility & contrast

On white

10.79
#342C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#342C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C96
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C96#FFFFFF#000000##FFFFFF
##342C961.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342c96;
/* rgb */ color: rgb(52, 44, 150);
/* oklch */ color: oklch(37.7% 0.166 278.2);
Tailwind
colors: {
  custom: {
    50: '#7866b6',
    500: '#342c96',
    950: '#000000',
  },
}
SCSS
$custom: #342c96;
$custom-light: #7866b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342c96",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 244.528,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37728,
    "c": 0.16574,
    "h": 278.2
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#342C96
secondary
#B3BA64
accent
#DE4AD3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C96

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

Preview Lab → · Contrast checker → · Palette generator →

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