#342D73#342D73

#342D73 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.7% C 0.116 H 283.1°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#342D73
RGBrgb(52, 45, 115)
HSLhsl(246, 44%, 31%)
HSVhsv(246, 61%, 45%)
CMYKcmyk(54.8%, 60.9%, 0%, 54.9%)
CIE-LABlab(23.15, 24.04, -39.50)
CIE-LCHlch(23.15, 46.23, 301.32°)
OKLaboklab(34.74% 0.0262 -0.1131)
OKLCHoklch(34.74% 0.116 283.1)
XYZxyz(5.4481, 3.8443, 16.6713)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D73 #6C732D
analogous
#2D4973 #342D73 #572D73
triadic
#342D73 #73342D #2D7334
tetradic
#342D73 #732D49 #6C732D #2D7357
square
#342D73 #732D49 #6C732D #2D7357
split-complementary
#342D73 #73572D #49732D
monochromatic
#0C0B1B #201C47 #342D73 #483E9F #655BBF

Accessibility & contrast

On white

11.87
#342D73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#342D73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D73
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D73#FFFFFF#000000##FFFFFF
##342D731.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#1A3D4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342d73;
/* rgb */ color: rgb(52, 45, 115);
/* oklch */ color: oklch(34.7% 0.116 283.1);
Tailwind
colors: {
  custom: {
    50: '#71669c',
    500: '#342d73',
    950: '#000000',
  },
}
SCSS
$custom: #342d73;
$custom-light: #71669c;
$custom-dark: #000000;
JSON
{
  "hex": "#342d73",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 115
  },
  "hsl": {
    "h": 246,
    "s": 43.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34738,
    "c": 0.11609,
    "h": 283.1
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#342D73
secondary
#9DA457
accent
#D354C7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342D73

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

Preview Lab → · Contrast checker → · Palette generator →

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