#342A80#342A80

#342A80 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.139 H 281.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#342A80
RGBrgb(52, 42, 128)
HSLhsl(247, 51%, 33%)
HSVhsv(247, 67%, 50%)
CMYKcmyk(59.4%, 67.2%, 0%, 49.8%)
CIE-LABlab(23.49, 30.42, -47.21)
CIE-LCHlch(23.49, 56.16, 302.79°)
OKLaboklab(35.32% 0.0286 -0.1358)
OKLCHoklch(35.32% 0.139 281.9)
XYZxyz(6.1392, 3.9441, 20.8557)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A80 #76802A
analogous
#2A4B80 #342A80 #5F2A80
triadic
#342A80 #80342A #2A8034
tetradic
#342A80 #802A4B #76802A #2A805F
square
#342A80 #802A4B #76802A #2A805F
split-complementary
#342A80 #805F2A #4B802A
monochromatic
#0F0C24 #211B52 #342A80 #4739AE #685BC9

Accessibility & contrast

On white

11.74
#342A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A80
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A80#FFFFFF#000000##FFFFFF
##342A801.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#094051
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342a80;
/* rgb */ color: rgb(52, 42, 128);
/* oklch */ color: oklch(35.3% 0.139 281.9);
Tailwind
colors: {
  custom: {
    50: '#7464a6',
    500: '#342a80',
    950: '#000000',
  },
}
SCSS
$custom: #342a80;
$custom-light: #7464a6;
$custom-dark: #000000;
JSON
{
  "hex": "#342a80",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 246.977,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.13875,
    "h": 281.9
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#342A80
secondary
#A5AF57
accent
#DA4ECA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342A80

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

Preview Lab → · Contrast checker → · Palette generator →

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