#342A99#342A99

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

Color values

HEX#342A99
RGBrgb(52, 42, 153)
HSLhsl(245, 57%, 38%)
HSVhsv(245, 73%, 60%)
CMYKcmyk(66%, 72.5%, 0%, 40%)
CIE-LABlab(25.82, 38.80, -58.92)
CIE-LCHlch(25.82, 70.55, 303.36°)
OKLaboklab(37.71% 0.0247 -0.1701)
OKLCHoklch(37.71% 0.172 278.3)
XYZxyz(7.9921, 4.6852, 30.6140)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A99 #8F992A
analogous
#2A5899 #342A99 #6B2A99
triadic
#342A99 #99342A #2A9934
tetradic
#342A99 #992A58 #8F992A #2A996B
square
#342A99 #992A58 #8F992A #2A996B
split-complementary
#342A99 #996B2A #58992A
monochromatic
#131039 #241D69 #342A99 #4538C8 #7268D6

Accessibility & contrast

On white

10.84
#342A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#342A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A99
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A99#FFFFFF#000000##FFFFFF
##342A991.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003997
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342a99;
/* rgb */ color: rgb(52, 42, 153);
/* oklch */ color: oklch(37.7% 0.172 278.3);
Tailwind
colors: {
  custom: {
    50: '#7965b8',
    500: '#342a99',
    950: '#000000',
  },
}
SCSS
$custom: #342a99;
$custom-light: #7965b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342a99",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 245.405,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37715,
    "c": 0.17187,
    "h": 278.3
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#342A99
secondary
#B4BC63
accent
#E048D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342A99

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

Preview Lab → · Contrast checker → · Palette generator →

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