#342C81#342C81

#342C81 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.137 H 281.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#342C81
RGBrgb(52, 44, 129)
HSLhsl(246, 49%, 34%)
HSVhsv(246, 66%, 51%)
CMYKcmyk(59.7%, 65.9%, 0%, 49.4%)
CIE-LABlab(24.05, 29.48, -46.92)
CIE-LCHlch(24.05, 55.41, 302.14°)
OKLaboklab(35.76% 0.0265 -0.1349)
OKLCHoklch(35.76% 0.137 281.1)
XYZxyz(6.2781, 4.1160, 21.2283)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C81 #79812C
analogous
#2C4F81 #342C81 #5F2C81
triadic
#342C81 #81342C #2C8134
tetradic
#342C81 #812C4F #79812C #2C815F
square
#342C81 #812C4F #79812C #2C815F
split-complementary
#342C81 #815F2C #4F812C
monochromatic
#0F0D26 #221C53 #342C81 #463CAF #695FC8

Accessibility & contrast

On white

11.52
#342C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C81
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C81#FFFFFF#000000##FFFFFF
##342C811.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#064152
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342c81;
/* rgb */ color: rgb(52, 44, 129);
/* oklch */ color: oklch(35.8% 0.137 281.1);
Tailwind
colors: {
  custom: {
    50: '#7466a6',
    500: '#342c81',
    950: '#000000',
  },
}
SCSS
$custom: #342c81;
$custom-light: #7466a6;
$custom-dark: #000000;
JSON
{
  "hex": "#342c81",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 245.647,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3576,
    "c": 0.13749,
    "h": 281.1
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#342C81
secondary
#A7AF5A
accent
#D94FCC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342C81

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

Preview Lab → · Contrast checker → · Palette generator →

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