#342C78#342C78

#342C78 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.125 H 282.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#342C78
RGBrgb(52, 44, 120)
HSLhsl(246, 46%, 32%)
HSVhsv(246, 63%, 47%)
CMYKcmyk(56.7%, 63.3%, 0%, 52.9%)
CIE-LABlab(23.30, 26.40, -42.45)
CIE-LCHlch(23.30, 49.99, 301.88°)
OKLaboklab(34.97% 0.0272 -0.1218)
OKLCHoklch(34.97% 0.125 282.6)
XYZxyz(5.7060, 3.8872, 18.2153)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C78 #70782C
analogous
#2C4A78 #342C78 #5A2C78
triadic
#342C78 #78342C #2C7834
tetradic
#342C78 #782C4A #70782C #2C785A
square
#342C78 #782C4A #70782C #2C785A
split-complementary
#342C78 #785A2C #4A782C
monochromatic
#0D0B1E #211C4B #342C78 #473CA5 #665BC3

Accessibility & contrast

On white

11.82
#342C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#342C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C78
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C78#FFFFFF#000000##FFFFFF
##342C781.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#153E4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342c78;
/* rgb */ color: rgb(52, 44, 120);
/* oklch */ color: oklch(35.0% 0.125 282.6);
Tailwind
colors: {
  custom: {
    50: '#7265a0',
    500: '#342c78',
    950: '#000000',
  },
}
SCSS
$custom: #342c78;
$custom-light: #7265a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342c78",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 246.316,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.12479,
    "h": 282.6
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#342C78
secondary
#A0A957
accent
#D652C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #342C78

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

Preview Lab → · Contrast checker → · Palette generator →

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