#342B76#342B76

#342B76 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.123 H 283.3°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#342B76
RGBrgb(52, 43, 118)
HSLhsl(247, 47%, 32%)
HSVhsv(247, 64%, 46%)
CMYKcmyk(55.9%, 63.6%, 0%, 53.7%)
CIE-LABlab(22.88, 26.38, -41.85)
CIE-LCHlch(22.88, 49.47, 302.23°)
OKLaboklab(34.62% 0.0284 -0.12)
OKLCHoklch(34.62% 0.123 283.3)
XYZxyz(5.5491, 3.7655, 17.5704)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B76 #6D762B
analogous
#2B4876 #342B76 #5A2B76
triadic
#342B76 #76342B #2B7634
tetradic
#342B76 #762B48 #6D762B #2B765A
square
#342B76 #762B48 #6D762B #2B765A
split-complementary
#342B76 #765A2B #48762B
monochromatic
#0C0A1C #201B49 #342B76 #483BA3 #6659C2

Accessibility & contrast

On white

11.98
#342B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#342B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B76
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B76#FFFFFF#000000##FFFFFF
##342B761.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#183D4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342b76;
/* rgb */ color: rgb(52, 43, 118);
/* oklch */ color: oklch(34.6% 0.123 283.3);
Tailwind
colors: {
  custom: {
    50: '#72659e',
    500: '#342b76',
    950: '#000000',
  },
}
SCSS
$custom: #342b76;
$custom-light: #72659e;
$custom-dark: #000000;
JSON
{
  "hex": "#342b76",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 118
  },
  "hsl": {
    "h": 247.2,
    "s": 46.584,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34615,
    "c": 0.12333,
    "h": 283.3
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#342B76
secondary
#9EA855
accent
#D652C6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342B76

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

Preview Lab → · Contrast checker → · Palette generator →

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