#342C72#342C72

#342C72 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.5% C 0.116 H 283.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#342C72
RGBrgb(52, 44, 114)
HSLhsl(247, 44%, 31%)
HSVhsv(247, 61%, 45%)
CMYKcmyk(54.4%, 61.4%, 0%, 55.3%)
CIE-LABlab(22.81, 24.36, -39.40)
CIE-LCHlch(22.81, 46.32, 301.73°)
OKLaboklab(34.47% 0.0274 -0.1128)
OKLCHoklch(34.47% 0.116 283.7)
XYZxyz(5.3532, 3.7460, 16.3573)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C72 #6A722C
analogous
#2C4772 #342C72 #572C72
triadic
#342C72 #72342C #2C7234
tetradic
#342C72 #722C47 #6A722C #2C7257
square
#342C72 #722C47 #6A722C #2C7257
split-complementary
#342C72 #72572C #47722C
monochromatic
#0C0A1A #201B46 #342C72 #483D9E #6559BF

Accessibility & contrast

On white

12.01
#342C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#342C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C72
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C72#FFFFFF#000000##FFFFFF
##342C721.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#1B3C4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342c72;
/* rgb */ color: rgb(52, 44, 114);
/* oklch */ color: oklch(34.5% 0.116 283.7);
Tailwind
colors: {
  custom: {
    50: '#71659b',
    500: '#342c72',
    950: '#000000',
  },
}
SCSS
$custom: #342c72;
$custom-light: #71659b;
$custom-dark: #000000;
JSON
{
  "hex": "#342c72",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 114
  },
  "hsl": {
    "h": 246.857,
    "s": 44.304,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34465,
    "c": 0.11609,
    "h": 283.7
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342C72

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

Preview Lab → · Contrast checker → · Palette generator →

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