#342D9D#342D9D

#342D9D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.174 H 277.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#342D9D
RGBrgb(52, 45, 157)
HSLhsl(244, 55%, 40%)
HSVhsv(244, 71%, 62%)
CMYKcmyk(66.9%, 71.3%, 0%, 38.4%)
CIE-LABlab(26.85, 38.36, -59.67)
CIE-LCHlch(26.85, 70.94, 302.73°)
OKLaboklab(38.57% 0.0219 -0.1723)
OKLCHoklch(38.57% 0.174 277.2)
XYZxyz(8.4384, 5.0404, 32.4200)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D9D #969D2D
analogous
#2D5E9D #342D9D #6C2D9D
triadic
#342D9D #9D342D #2D9D34
tetradic
#342D9D #9D2D5E #969D2D #2D9D6C
square
#342D9D #9D2D5E #969D2D #2D9D6C
split-complementary
#342D9D #9D6C2D #5E9D2D
monochromatic
#14123E #241F6D #342D9D #483FC8 #756FD6

Accessibility & contrast

On white

10.46
#342D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#342D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D9D
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D9D#FFFFFF#000000##FFFFFF
##342D9D1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342d9d;
/* rgb */ color: rgb(52, 45, 157);
/* oklch */ color: oklch(38.6% 0.174 277.2);
Tailwind
colors: {
  custom: {
    50: '#7a67bb',
    500: '#342d9d',
    950: '#000000',
  },
}
SCSS
$custom: #342d9d;
$custom-light: #7a67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#342d9d",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 243.75,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38571,
    "c": 0.17367,
    "h": 277.2
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

primary
#342D9D
secondary
#B8BD69
accent
#DF49D5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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