#342E86#342E86

#342E86 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.142 H 279.8°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#342E86
RGBrgb(52, 46, 134)
HSLhsl(244, 49%, 35%)
HSVhsv(244, 66%, 53%)
CMYKcmyk(61.2%, 65.7%, 0%, 47.5%)
CIE-LABlab(24.97, 29.91, -48.56)
CIE-LCHlch(24.97, 57.03, 301.63°)
OKLaboklab(36.56% 0.0241 -0.1397)
OKLCHoklch(36.56% 0.142 279.8)
XYZxyz(6.6949, 4.4048, 23.0471)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E86 #80862E
analogous
#2E5486 #342E86 #602E86
triadic
#342E86 #86342E #2E8634
tetradic
#342E86 #862E54 #80862E #2E8660
square
#342E86 #862E54 #80862E #2E8660
split-complementary
#342E86 #86602E #54862E
monochromatic
#110F2B #221E58 #342E86 #463EB4 #6B64CA

Accessibility & contrast

On white

11.16
#342E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#342E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E86
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E86#FFFFFF#000000##FFFFFF
##342E861.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342e86;
/* rgb */ color: rgb(52, 46, 134);
/* oklch */ color: oklch(36.6% 0.142 279.8);
Tailwind
colors: {
  custom: {
    50: '#7567aa',
    500: '#342e86',
    950: '#000000',
  },
}
SCSS
$custom: #342e86;
$custom-light: #7567aa;
$custom-dark: #000000;
JSON
{
  "hex": "#342e86",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 244.091,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36562,
    "c": 0.1418,
    "h": 279.8
  },
  "luminance": 0.04405
}

Semantic roles & 50–950 ramp

primary
#342E86
secondary
#ABB15F
accent
#D84FCF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342E86

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

Preview Lab → · Contrast checker → · Palette generator →

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