#342E99#342E99

#342E99 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.167 H 277.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#342E99
RGBrgb(52, 46, 153)
HSLhsl(243, 54%, 39%)
HSVhsv(243, 70%, 60%)
CMYKcmyk(66%, 69.9%, 0%, 40%)
CIE-LABlab(26.69, 36.41, -57.50)
CIE-LCHlch(26.69, 68.05, 302.34°)
OKLaboklab(38.34% 0.0218 -0.1659)
OKLCHoklch(38.34% 0.167 277.5)
XYZxyz(8.1411, 4.9833, 30.6637)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E99 #93992E
analogous
#2E5E99 #342E99 #6A2E99
triadic
#342E99 #99342E #2E9934
tetradic
#342E99 #992E5E #93992E #2E996A
square
#342E99 #992E5E #93992E #2E996A
split-complementary
#342E99 #996A2E #5E992E
monochromatic
#14123B #24206A #342E99 #463FC5 #746ED3

Accessibility & contrast

On white

10.52
#342E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#342E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E99
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E99#FFFFFF#000000##FFFFFF
##342E991.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342e99;
/* rgb */ color: rgb(52, 46, 153);
/* oklch */ color: oklch(38.3% 0.167 277.5);
Tailwind
colors: {
  custom: {
    50: '#7968b8',
    500: '#342e99',
    950: '#000000',
  },
}
SCSS
$custom: #342e99;
$custom-light: #7968b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342e99",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 243.364,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38338,
    "c": 0.16734,
    "h": 277.5
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#342E99
secondary
#B6BB68
accent
#DD4BD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342E99

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

Preview Lab → · Contrast checker → · Palette generator →

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