#342D86#342D86

#342D86 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.143 H 280.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#342D86
RGBrgb(52, 45, 134)
HSLhsl(245, 50%, 35%)
HSVhsv(245, 66%, 53%)
CMYKcmyk(61.2%, 66.4%, 0%, 47.5%)
CIE-LABlab(24.73, 30.55, -48.95)
CIE-LCHlch(24.73, 57.70, 301.97°)
OKLaboklab(36.39% 0.0251 -0.1409)
OKLCHoklch(36.39% 0.143 280.1)
XYZxyz(6.6563, 4.3276, 23.0342)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D86 #7F862D
analogous
#2D5386 #342D86 #602D86
triadic
#342D86 #86342D #2D8634
tetradic
#342D86 #862D53 #7F862D #2D8660
square
#342D86 #862D53 #7F862D #2D8660
split-complementary
#342D86 #86602D #53862D
monochromatic
#100E2A #221E58 #342D86 #463CB4 #6B63CB

Accessibility & contrast

On white

11.26
#342D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#342D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D86
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D86#FFFFFF#000000##FFFFFF
##342D861.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342d86;
/* rgb */ color: rgb(52, 45, 134);
/* oklch */ color: oklch(36.4% 0.143 280.1);
Tailwind
colors: {
  custom: {
    50: '#7566aa',
    500: '#342d86',
    950: '#000000',
  },
}
SCSS
$custom: #342d86;
$custom-light: #7566aa;
$custom-dark: #000000;
JSON
{
  "hex": "#342d86",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 244.719,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36387,
    "c": 0.14309,
    "h": 280.1
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#342D86
secondary
#AAB15E
accent
#D94FCE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342D86

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

Preview Lab → · Contrast checker → · Palette generator →

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