#342A89#342A89

#342A89 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.151 H 280.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#342A89
RGBrgb(52, 42, 137)
HSLhsl(246, 53%, 35%)
HSVhsv(246, 69%, 54%)
CMYKcmyk(62%, 69.3%, 0%, 46.3%)
CIE-LABlab(24.30, 33.45, -51.53)
CIE-LCHlch(24.30, 61.44, 302.99°)
OKLaboklab(36.16% 0.0274 -0.1484)
OKLCHoklch(36.16% 0.151 280.5)
XYZxyz(6.7581, 4.1917, 24.1150)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A89 #7F892A
analogous
#2A4F89 #342A89 #642A89
triadic
#342A89 #89342A #2A8934
tetradic
#342A89 #892A4F #7F892A #2A8964
square
#342A89 #892A4F #7F892A #2A8964
split-complementary
#342A89 #89642A #4F892A
monochromatic
#100D2B #221C5A #342A89 #4638B8 #6B5FCE

Accessibility & contrast

On white

11.42
#342A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#342A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A89
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A89#FFFFFF#000000##FFFFFF
##342A891.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003687
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342a89;
/* rgb */ color: rgb(52, 42, 137);
/* oklch */ color: oklch(36.2% 0.151 280.5);
Tailwind
colors: {
  custom: {
    50: '#7664ac',
    500: '#342a89',
    950: '#000000',
  },
}
SCSS
$custom: #342a89;
$custom-light: #7664ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342a89",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 246.316,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36158,
    "c": 0.15096,
    "h": 280.5
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#342A89
secondary
#AAB45B
accent
#DC4BCD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #342A89

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

Preview Lab → · Contrast checker → · Palette generator →

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