#342D8D#342D8D

#342D8D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.153 H 279.1°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#342D8D
RGBrgb(52, 45, 141)
HSLhsl(244, 52%, 36%)
HSVhsv(244, 68%, 55%)
CMYKcmyk(63.1%, 68.1%, 0%, 44.7%)
CIE-LABlab(25.35, 32.94, -52.29)
CIE-LCHlch(25.35, 61.81, 302.21°)
OKLaboklab(37.03% 0.0243 -0.1507)
OKLCHoklch(37.03% 0.153 279.1)
XYZxyz(7.1607, 4.5294, 25.6910)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D8D #868D2D
analogous
#2D568D #342D8D #642D8D
triadic
#342D8D #8D342D #2D8D34
tetradic
#342D8D #8D2D56 #868D2D #2D8D64
square
#342D8D #8D2D56 #868D2D #2D8D64
split-complementary
#342D8D #8D642D #568D2D
monochromatic
#120F30 #231E5F #342D8D #453CBB #6E66CE

Accessibility & contrast

On white

11.02
#342D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D8D
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D8D#FFFFFF#000000##FFFFFF
##342D8D1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342d8d;
/* rgb */ color: rgb(52, 45, 141);
/* oklch */ color: oklch(37.0% 0.153 279.1);
Tailwind
colors: {
  custom: {
    50: '#7667af',
    500: '#342d8d',
    950: '#000000',
  },
}
SCSS
$custom: #342d8d;
$custom-light: #7667af;
$custom-dark: #000000;
JSON
{
  "hex": "#342d8d",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 244.375,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37032,
    "c": 0.15263,
    "h": 279.1
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#342D8D
secondary
#AFB561
accent
#DB4DD1
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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