#342B8B#342B8B

#342B8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.152 H 279.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#342B8B
RGBrgb(52, 43, 139)
HSLhsl(246, 53%, 36%)
HSVhsv(246, 69%, 55%)
CMYKcmyk(62.6%, 69.1%, 0%, 45.5%)
CIE-LABlab(24.71, 33.51, -52.10)
CIE-LCHlch(24.71, 61.95, 302.75°)
OKLaboklab(36.51% 0.0263 -0.1501)
OKLCHoklch(36.51% 0.152 279.9)
XYZxyz(6.9388, 4.3214, 24.8896)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B8B #828B2B
analogous
#2B528B #342B8B #642B8B
triadic
#342B8B #8B342B #2B8B34
tetradic
#342B8B #8B2B52 #828B2B #2B8B64
square
#342B8B #8B2B52 #828B2B #2B8B64
split-complementary
#342B8B #8B642B #528B2B
monochromatic
#110E2E #231D5C #342B8B #4539BA #6C62CE

Accessibility & contrast

On white

11.26
#342B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B8B
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B8B#FFFFFF#000000##FFFFFF
##342B8B1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342b8b;
/* rgb */ color: rgb(52, 43, 139);
/* oklch */ color: oklch(36.5% 0.152 279.9);
Tailwind
colors: {
  custom: {
    50: '#7665ae',
    500: '#342b8b',
    950: '#000000',
  },
}
SCSS
$custom: #342b8b;
$custom-light: #7665ae;
$custom-dark: #000000;
JSON
{
  "hex": "#342b8b",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 245.625,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36511,
    "c": 0.15241,
    "h": 279.9
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#342B8B
secondary
#ACB55D
accent
#DC4CCF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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