#342D8B#342D8B

#342D8B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.150 H 279.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#342D8B
RGBrgb(52, 45, 139)
HSLhsl(244, 51%, 36%)
HSVhsv(244, 68%, 55%)
CMYKcmyk(62.6%, 67.6%, 0%, 45.5%)
CIE-LABlab(25.17, 32.26, -51.35)
CIE-LCHlch(25.17, 60.64, 302.14°)
OKLaboklab(36.85% 0.0245 -0.1479)
OKLCHoklch(36.85% 0.15 279.4)
XYZxyz(7.0133, 4.4704, 24.9144)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D8B #848B2D
analogous
#2D558B #342D8B #632D8B
triadic
#342D8B #8B342D #2D8B34
tetradic
#342D8B #8B2D55 #848B2D #2D8B63
square
#342D8B #8B2D55 #848B2D #2D8B63
split-complementary
#342D8B #8B632D #558B2D
monochromatic
#110F2F #231E5D #342D8B #453CB9 #6D65CD

Accessibility & contrast

On white

11.09
#342D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#342D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D8B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D8B#FFFFFF#000000##FFFFFF
##342D8B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342d8b;
/* rgb */ color: rgb(52, 45, 139);
/* oklch */ color: oklch(36.8% 0.150 279.4);
Tailwind
colors: {
  custom: {
    50: '#7666ae',
    500: '#342d8b',
    950: '#000000',
  },
}
SCSS
$custom: #342d8b;
$custom-light: #7666ae;
$custom-dark: #000000;
JSON
{
  "hex": "#342d8b",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 244.468,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36846,
    "c": 0.14993,
    "h": 279.4
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#342D8B
secondary
#AEB460
accent
#DB4DD0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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