#342F89#342F89

#342F89 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.145 H 279.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#342F89
RGBrgb(52, 47, 137)
HSLhsl(243, 49%, 36%)
HSVhsv(243, 66%, 54%)
CMYKcmyk(62%, 65.7%, 0%, 46.3%)
CIE-LABlab(25.47, 30.30, -49.61)
CIE-LCHlch(25.47, 58.14, 301.42°)
OKLaboklab(37.01% 0.0229 -0.1428)
OKLCHoklch(37.01% 0.145 279.1)
XYZxyz(6.9466, 4.5687, 24.1779)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F89 #84892F
analogous
#2F5789 #342F89 #612F89
triadic
#342F89 #89342F #2F8934
tetradic
#342F89 #892F57 #84892F #2F8961
square
#342F89 #892F57 #84892F #2F8961
split-complementary
#342F89 #89612F #57892F
monochromatic
#11102E #231F5B #342F89 #453FB7 #6D67CB

Accessibility & contrast

On white

10.97
#342F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F89
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F89#FFFFFF#000000##FFFFFF
##342F891.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342f89;
/* rgb */ color: rgb(52, 47, 137);
/* oklch */ color: oklch(37.0% 0.145 279.1);
Tailwind
colors: {
  custom: {
    50: '#7568ac',
    500: '#342f89',
    950: '#000000',
  },
}
SCSS
$custom: #342f89;
$custom-light: #7568ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342f89",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 243.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37009,
    "c": 0.14464,
    "h": 279.1
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

primary
#342F89
secondary
#AEB262
accent
#D84FD1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342F89

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

Preview Lab → · Contrast checker → · Palette generator →

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