#342D78#342D78

#342D78 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.123 H 282.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#342D78
RGBrgb(52, 45, 120)
HSLhsl(246, 45%, 32%)
HSVhsv(246, 63%, 47%)
CMYKcmyk(56.7%, 62.5%, 0%, 52.9%)
CIE-LABlab(23.55, 25.75, -42.04)
CIE-LCHlch(23.55, 49.30, 301.48°)
OKLaboklab(35.16% 0.0261 -0.1206)
OKLCHoklch(35.16% 0.123 282.2)
XYZxyz(5.7437, 3.9626, 18.2279)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D78 #71782D
analogous
#2D4C78 #342D78 #5A2D78
triadic
#342D78 #78342D #2D7834
tetradic
#342D78 #782D4C #71782D #2D785A
square
#342D78 #782D4C #71782D #2D785A
split-complementary
#342D78 #785A2D #4C782D
monochromatic
#0D0C1F #211C4B #342D78 #473EA5 #675DC2

Accessibility & contrast

On white

11.71
#342D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#342D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D78
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D78#FFFFFF#000000##FFFFFF
##342D781.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342d78;
/* rgb */ color: rgb(52, 45, 120);
/* oklch */ color: oklch(35.2% 0.123 282.2);
Tailwind
colors: {
  custom: {
    50: '#7266a0',
    500: '#342d78',
    950: '#000000',
  },
}
SCSS
$custom: #342d78;
$custom-light: #7266a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342d78",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 245.6,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35156,
    "c": 0.12337,
    "h": 282.2
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#342D78
secondary
#A1A958
accent
#D553C9
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #342D78

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

Preview Lab → · Contrast checker → · Palette generator →

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