#342B73#342B73

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

Color values

HEX#342B73
RGBrgb(52, 43, 115)
HSLhsl(248, 46%, 31%)
HSVhsv(248, 63%, 45%)
CMYKcmyk(54.8%, 62.6%, 0%, 54.9%)
CIE-LABlab(22.64, 25.36, -40.33)
CIE-LCHlch(22.64, 47.64, 302.17°)
OKLaboklab(34.36% 0.0286 -0.1155)
OKLCHoklch(34.36% 0.119 283.9)
XYZxyz(5.3736, 3.6953, 16.6464)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B73 #6A732B
analogous
#2B4673 #342B73 #582B73
triadic
#342B73 #73342B #2B7334
tetradic
#342B73 #732B46 #6A732B #2B7358
square
#342B73 #732B46 #6A732B #2B7358
split-complementary
#342B73 #73582B #46732B
monochromatic
#0C0A1A #201A46 #342B73 #483CA0 #6558C1

Accessibility & contrast

On white

12.07
#342B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B73
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B73#FFFFFF#000000##FFFFFF
##342B731.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003875
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#1A3C4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342b73;
/* rgb */ color: rgb(52, 43, 115);
/* oklch */ color: oklch(34.4% 0.119 283.9);
Tailwind
colors: {
  custom: {
    50: '#72649c',
    500: '#342b73',
    950: '#000000',
  },
}
SCSS
$custom: #342b73;
$custom-light: #72649c;
$custom-dark: #000000;
JSON
{
  "hex": "#342b73",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 115
  },
  "hsl": {
    "h": 247.5,
    "s": 45.57,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34361,
    "c": 0.11902,
    "h": 283.9
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#342B73
secondary
#9BA555
accent
#D553C5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342B73

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

Preview Lab → · Contrast checker → · Palette generator →

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