#342C71#342C71

#342C71 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.4% C 0.115 H 283.8°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#342C71
RGBrgb(52, 44, 113)
HSLhsl(247, 44%, 31%)
HSVhsv(247, 61%, 44%)
CMYKcmyk(54%, 61.1%, 0%, 55.7%)
CIE-LABlab(22.74, 24.02, -38.89)
CIE-LCHlch(22.74, 45.71, 301.70°)
OKLaboklab(34.38% 0.0274 -0.1113)
OKLCHoklch(34.38% 0.115 283.8)
XYZxyz(5.2966, 3.7234, 16.0592)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C71 #69712C
analogous
#2C4671 #342C71 #562C71
triadic
#342C71 #71342C #2C7134
tetradic
#342C71 #712C46 #69712C #2C7156
square
#342C71 #712C46 #69712C #2C7156
split-complementary
#342C71 #71562C #46712C
monochromatic
#0B0A19 #201B45 #342C71 #483D9D #6559BE

Accessibility & contrast

On white

12.04
#342C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#342C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C71
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C71#FFFFFF#000000##FFFFFF
##342C711.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#1C3C4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342c71;
/* rgb */ color: rgb(52, 44, 113);
/* oklch */ color: oklch(34.4% 0.115 283.8);
Tailwind
colors: {
  custom: {
    50: '#71659a',
    500: '#342c71',
    950: '#000000',
  },
}
SCSS
$custom: #342c71;
$custom-light: #71659a;
$custom-dark: #000000;
JSON
{
  "hex": "#342c71",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 246.957,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34382,
    "c": 0.11463,
    "h": 283.8
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#342C71
secondary
#9AA356
accent
#D454C5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342C71

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

Preview Lab → · Contrast checker → · Palette generator →

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