#342D74#342D74

#342D74 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.118 H 282.9°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#342D74
RGBrgb(52, 45, 116)
HSLhsl(246, 44%, 32%)
HSVhsv(246, 61%, 45%)
CMYKcmyk(55.2%, 61.2%, 0%, 54.5%)
CIE-LABlab(23.23, 24.38, -40.01)
CIE-LCHlch(23.23, 46.85, 301.35°)
OKLaboklab(34.82% 0.0262 -0.1146)
OKLCHoklch(34.82% 0.118 282.9)
XYZxyz(5.5060, 3.8675, 16.9760)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D74 #6D742D
analogous
#2D4A74 #342D74 #582D74
triadic
#342D74 #74342D #2D7434
tetradic
#342D74 #742D4A #6D742D #2D7458
square
#342D74 #742D4A #6D742D #2D7458
split-complementary
#342D74 #74582D #4A742D
monochromatic
#0C0B1C #201C48 #342D74 #483EA0 #665CC0

Accessibility & contrast

On white

11.84
#342D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342D74
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D74#FFFFFF#000000##FFFFFF
##342D741.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#193E4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342d74;
/* rgb */ color: rgb(52, 45, 116);
/* oklch */ color: oklch(34.8% 0.118 282.9);
Tailwind
colors: {
  custom: {
    50: '#72669d',
    500: '#342d74',
    950: '#000000',
  },
}
SCSS
$custom: #342d74;
$custom-light: #72669d;
$custom-dark: #000000;
JSON
{
  "hex": "#342d74",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 245.915,
    "s": 44.099,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34821,
    "c": 0.11755,
    "h": 282.9
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#342D74
secondary
#9EA557
accent
#D454C7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342D74

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

Preview Lab → · Contrast checker → · Palette generator →

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