#342F96#342F96

#342F96 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.162 H 277.6°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#342F96
RGBrgb(52, 47, 150)
HSLhsl(243, 52%, 39%)
HSVhsv(243, 69%, 59%)
CMYKcmyk(65.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(26.63, 34.77, -55.75)
CIE-LCHlch(26.63, 65.70, 301.95°)
OKLaboklab(38.21% 0.0215 -0.1608)
OKLCHoklch(38.21% 0.162 277.6)
XYZxyz(7.9359, 4.9645, 29.3883)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F96 #91962F
analogous
#2F5D96 #342F96 #672F96
triadic
#342F96 #96342F #2F9634
tetradic
#342F96 #962F5D #91962F #2F9667
square
#342F96 #962F5D #91962F #2F9667
split-complementary
#342F96 #96672F #5D962F
monochromatic
#141239 #242067 #342F96 #463FC3 #736ED2

Accessibility & contrast

On white

10.54
#342F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#342F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F96
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F96#FFFFFF#000000##FFFFFF
##342F961.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342f96;
/* rgb */ color: rgb(52, 47, 150);
/* oklch */ color: oklch(38.2% 0.162 277.6);
Tailwind
colors: {
  custom: {
    50: '#7868b6',
    500: '#342f96',
    950: '#000000',
  },
}
SCSS
$custom: #342f96;
$custom-light: #7868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342f96",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 242.913,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38213,
    "c": 0.16222,
    "h": 277.6
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

primary
#342F96
secondary
#B5B968
accent
#DC4CD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342F96

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

Preview Lab → · Contrast checker → · Palette generator →

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