#342E9E#342E9E

#342E9E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.174 H 276.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#342E9E
RGBrgb(52, 46, 158)
HSLhsl(243, 55%, 40%)
HSVhsv(243, 71%, 62%)
CMYKcmyk(67.1%, 70.9%, 0%, 38%)
CIE-LABlab(27.16, 38.10, -59.77)
CIE-LCHlch(27.16, 70.88, 302.51°)
OKLaboklab(38.82% 0.021 -0.1726)
OKLCHoklch(38.82% 0.174 276.9)
XYZxyz(8.5627, 5.1519, 32.8843)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E9E #989E2E
analogous
#2E609E #342E9E #6C2E9E
triadic
#342E9E #9E342E #2E9E34
tetradic
#342E9E #9E2E60 #989E2E #2E9E6C
square
#342E9E #9E2E60 #989E2E #2E9E6C
split-complementary
#342E9E #9E6C2E #609E2E
monochromatic
#15123F #24206F #342E9E #4941C8 #7671D6

Accessibility & contrast

On white

10.34
#342E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#342E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E9E
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E9E#FFFFFF#000000##FFFFFF
##342E9E1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342e9e;
/* rgb */ color: rgb(52, 46, 158);
/* oklch */ color: oklch(38.8% 0.174 276.9);
Tailwind
colors: {
  custom: {
    50: '#7a68bc',
    500: '#342e9e',
    950: '#000000',
  },
}
SCSS
$custom: #342e9e;
$custom-light: #7a68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#342e9e",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 243.214,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.38825,
    "c": 0.17384,
    "h": 276.9
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#342E9E
secondary
#B9BD6B
accent
#DE4AD6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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