#342D9E#342D9E

#342D9E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.175 H 277.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#342D9E
RGBrgb(52, 45, 158)
HSLhsl(244, 56%, 40%)
HSVhsv(244, 72%, 62%)
CMYKcmyk(67.1%, 71.5%, 0%, 38%)
CIE-LABlab(26.95, 38.69, -60.12)
CIE-LCHlch(26.95, 71.50, 302.76°)
OKLaboklab(38.67% 0.0217 -0.1736)
OKLCHoklch(38.67% 0.175 277.1)
XYZxyz(8.5241, 5.0747, 32.8714)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D9E #979E2D
analogous
#2D5E9E #342D9E #6D2D9E
triadic
#342D9E #9E342D #2D9E34
tetradic
#342D9E #9E2D5E #979E2D #2D9E6D
square
#342D9E #9E2D5E #979E2D #2D9E6D
split-complementary
#342D9E #9E6D2D #5E9E2D
monochromatic
#15123F #241F6E #342D9E #4840C9 #766FD6

Accessibility & contrast

On white

10.42
#342D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#342D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D9E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D9E#FFFFFF#000000##FFFFFF
##342D9E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342d9e;
/* rgb */ color: rgb(52, 45, 158);
/* oklch */ color: oklch(38.7% 0.175 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a67bc',
    500: '#342d9e',
    950: '#000000',
  },
}
SCSS
$custom: #342d9e;
$custom-light: #7a67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#342d9e",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 243.717,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3867,
    "c": 0.17495,
    "h": 277.1
  },
  "luminance": 0.05075
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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