#342B79#342B79

#342B79 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.128 H 282.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#342B79
RGBrgb(52, 43, 121)
HSLhsl(247, 48%, 32%)
HSVhsv(247, 64%, 47%)
CMYKcmyk(57%, 64.5%, 0%, 52.5%)
CIE-LABlab(23.13, 27.40, -43.36)
CIE-LCHlch(23.13, 51.29, 302.29°)
OKLaboklab(34.88% 0.0282 -0.1245)
OKLCHoklch(34.88% 0.128 282.8)
XYZxyz(5.7302, 3.8380, 18.5243)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B79 #70792B
analogous
#2B4979 #342B79 #5B2B79
triadic
#342B79 #79342B #2B7934
tetradic
#342B79 #792B49 #70792B #2B795B
square
#342B79 #792B49 #70792B #2B795B
split-complementary
#342B79 #795B2B #49792B
monochromatic
#0D0B1F #211B4C #342B79 #473BA6 #665AC4

Accessibility & contrast

On white

11.88
#342B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#342B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B79
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B79#FFFFFF#000000##FFFFFF
##342B791.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#143E4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342b79;
/* rgb */ color: rgb(52, 43, 121);
/* oklch */ color: oklch(34.9% 0.128 282.8);
Tailwind
colors: {
  custom: {
    50: '#7365a0',
    500: '#342b79',
    950: '#000000',
  },
}
SCSS
$custom: #342b79;
$custom-light: #7365a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342b79",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 246.923,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34875,
    "c": 0.12762,
    "h": 282.8
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#342B79
secondary
#A0AA56
accent
#D751C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #342B79

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

Preview Lab → · Contrast checker → · Palette generator →

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