#342E81#342E81

#342E81 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.135 H 280.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#342E81
RGBrgb(52, 46, 129)
HSLhsl(244, 47%, 34%)
HSVhsv(244, 64%, 51%)
CMYKcmyk(59.7%, 64.3%, 0%, 49.4%)
CIE-LABlab(24.54, 28.19, -46.12)
CIE-LCHlch(24.54, 54.05, 301.43°)
OKLaboklab(36.12% 0.0245 -0.1326)
OKLCHoklch(36.12% 0.135 280.5)
XYZxyz(6.3544, 4.2686, 21.2537)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E81 #7B812E
analogous
#2E5281 #342E81 #5E2E81
triadic
#342E81 #81342E #2E8134
tetradic
#342E81 #812E52 #7B812E #2E815E
square
#342E81 #812E52 #7B812E #2E815E
split-complementary
#342E81 #815E2E #52812E
monochromatic
#100E27 #221E54 #342E81 #463EAE #6A62C7

Accessibility & contrast

On white

11.33
#342E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#342E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E81
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E81#FFFFFF#000000##FFFFFF
##342E811.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#064253
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342e81;
/* rgb */ color: rgb(52, 46, 129);
/* oklch */ color: oklch(36.1% 0.135 280.5);
Tailwind
colors: {
  custom: {
    50: '#7467a6',
    500: '#342e81',
    950: '#000000',
  },
}
SCSS
$custom: #342e81;
$custom-light: #7467a6;
$custom-dark: #000000;
JSON
{
  "hex": "#342e81",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 244.337,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36117,
    "c": 0.13481,
    "h": 280.5
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#342E81
secondary
#A8AE5D
accent
#D751CD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342E81

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

Preview Lab → · Contrast checker → · Palette generator →

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