#342E96#342E96

#342E96 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.163 H 277.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#342E96
RGBrgb(52, 46, 150)
HSLhsl(243, 53%, 38%)
HSVhsv(243, 69%, 59%)
CMYKcmyk(65.3%, 69.3%, 0%, 41.2%)
CIE-LABlab(26.41, 35.39, -56.12)
CIE-LCHlch(26.41, 66.35, 302.24°)
OKLaboklab(38.05% 0.0222 -0.1619)
OKLCHoklch(38.05% 0.163 277.8)
XYZxyz(7.8964, 4.8854, 29.3751)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E96 #90962E
analogous
#2E5C96 #342E96 #682E96
triadic
#342E96 #96342E #2E9634
tetradic
#342E96 #962E5C #90962E #2E9668
square
#342E96 #962E5C #90962E #2E9668
split-complementary
#342E96 #96682E #5C962E
monochromatic
#141138 #242067 #342E96 #453EC4 #726CD2

Accessibility & contrast

On white

10.62
#342E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#342E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E96
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E96#FFFFFF#000000##FFFFFF
##342E961.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342e96;
/* rgb */ color: rgb(52, 46, 150);
/* oklch */ color: oklch(38.0% 0.163 277.8);
Tailwind
colors: {
  custom: {
    50: '#7868b6',
    500: '#342e96',
    950: '#000000',
  },
}
SCSS
$custom: #342e96;
$custom-light: #7868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342e96",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 243.462,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38049,
    "c": 0.16341,
    "h": 277.8
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#342E96
secondary
#B4B967
accent
#DC4BD4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342E96

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

Preview Lab → · Contrast checker → · Palette generator →

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