#342D9B#342D9B

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

Color values

HEX#342D9B
RGBrgb(52, 45, 155)
HSLhsl(244, 55%, 39%)
HSVhsv(244, 71%, 61%)
CMYKcmyk(66.5%, 71%, 0%, 39.2%)
CIE-LABlab(26.66, 37.69, -58.77)
CIE-LCHlch(26.66, 69.81, 302.67°)
OKLaboklab(38.37% 0.0222 -0.1696)
OKLCHoklch(38.37% 0.171 277.5)
XYZxyz(8.2690, 4.9727, 31.5281)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D9B #949B2D
analogous
#2D5D9B #342D9B #6B2D9B
triadic
#342D9B #9B342D #2D9B34
tetradic
#342D9B #9B2D5D #949B2D #2D9B6B
square
#342D9B #9B2D5D #949B2D #2D9B6B
split-complementary
#342D9B #9B6B2D #5D9B2D
monochromatic
#14113C #241F6C #342D9B #473EC7 #746ED5

Accessibility & contrast

On white

10.53
#342D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#342D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D9B
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D9B#FFFFFF#000000##FFFFFF
##342D9B1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342d9b;
/* rgb */ color: rgb(52, 45, 155);
/* oklch */ color: oklch(38.4% 0.171 277.5);
Tailwind
colors: {
  custom: {
    50: '#7967ba',
    500: '#342d9b',
    950: '#000000',
  },
}
SCSS
$custom: #342d9b;
$custom-light: #7967ba;
$custom-dark: #000000;
JSON
{
  "hex": "#342d9b",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 243.818,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38374,
    "c": 0.1711,
    "h": 277.5
  },
  "luminance": 0.04973
}

Semantic roles & 50–950 ramp

primary
#342D9B
secondary
#B7BC68
accent
#DE49D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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