#342B78#342B78

#342B78 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.126 H 283.0°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#342B78
RGBrgb(52, 43, 120)
HSLhsl(247, 47%, 32%)
HSVhsv(247, 64%, 47%)
CMYKcmyk(56.7%, 64.2%, 0%, 52.9%)
CIE-LABlab(23.05, 27.06, -42.86)
CIE-LCHlch(23.05, 50.69, 302.27°)
OKLaboklab(34.79% 0.0283 -0.123)
OKLCHoklch(34.79% 0.126 283)
XYZxyz(5.6692, 3.8135, 18.2030)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B78 #6F782B
analogous
#2B4978 #342B78 #5B2B78
triadic
#342B78 #78342B #2B7834
tetradic
#342B78 #782B49 #6F782B #2B785B
square
#342B78 #782B49 #6F782B #2B785B
split-complementary
#342B78 #785B2B #49782B
monochromatic
#0D0B1E #201B4B #342B78 #483BA5 #665AC4

Accessibility & contrast

On white

11.91
#342B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#342B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B78
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B78#FFFFFF#000000##FFFFFF
##342B781.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#153E4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342b78;
/* rgb */ color: rgb(52, 43, 120);
/* oklch */ color: oklch(34.8% 0.126 283.0);
Tailwind
colors: {
  custom: {
    50: '#7265a0',
    500: '#342b78',
    950: '#000000',
  },
}
SCSS
$custom: #342b78;
$custom-light: #7265a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342b78",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 247.013,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34788,
    "c": 0.12619,
    "h": 283
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#342B78
secondary
#A0AA55
accent
#D751C7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #342B78

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

Preview Lab → · Contrast checker → · Palette generator →

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