#342A86#342A86

#342A86 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.147 H 280.9°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#342A86
RGBrgb(52, 42, 134)
HSLhsl(247, 52%, 35%)
HSVhsv(247, 69%, 53%)
CMYKcmyk(61.2%, 68.7%, 0%, 47.5%)
CIE-LABlab(24.02, 32.44, -50.10)
CIE-LCHlch(24.02, 59.69, 302.92°)
OKLaboklab(35.88% 0.0278 -0.1443)
OKLCHoklch(35.88% 0.147 280.9)
XYZxyz(6.5459, 4.1068, 22.9974)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A86 #7C862A
analogous
#2A4E86 #342A86 #622A86
triadic
#342A86 #86342A #2A8634
tetradic
#342A86 #862A4E #7C862A #2A8662
square
#342A86 #862A4E #7C862A #2A8662
split-complementary
#342A86 #86622A #4E862A
monochromatic
#100D29 #221B57 #342A86 #4639B5 #6A5ECD

Accessibility & contrast

On white

11.53
#342A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A86
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A86#FFFFFF#000000##FFFFFF
##342A861.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342a86;
/* rgb */ color: rgb(52, 42, 134);
/* oklch */ color: oklch(35.9% 0.147 280.9);
Tailwind
colors: {
  custom: {
    50: '#7564aa',
    500: '#342a86',
    950: '#000000',
  },
}
SCSS
$custom: #342a86;
$custom-light: #7564aa;
$custom-dark: #000000;
JSON
{
  "hex": "#342a86",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 246.522,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35876,
    "c": 0.14693,
    "h": 280.9
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#342A86
secondary
#A9B25A
accent
#DC4CCC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342A86

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

Preview Lab → · Contrast checker → · Palette generator →

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