#342D75#342D75

#342D75 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.9% C 0.119 H 282.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#342D75
RGBrgb(52, 45, 117)
HSLhsl(246, 44%, 32%)
HSVhsv(246, 62%, 46%)
CMYKcmyk(55.6%, 61.5%, 0%, 54.1%)
CIE-LABlab(23.31, 24.72, -40.52)
CIE-LCHlch(23.31, 47.46, 301.39°)
OKLaboklab(34.9% 0.0262 -0.1161)
OKLCHoklch(34.9% 0.119 282.7)
XYZxyz(5.5645, 3.8909, 17.2840)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D75 #6E752D
analogous
#2D4A75 #342D75 #582D75
triadic
#342D75 #75342D #2D7534
tetradic
#342D75 #752D4A #6E752D #2D7558
square
#342D75 #752D4A #6E752D #2D7558
split-complementary
#342D75 #75582D #4A752D
monochromatic
#0D0B1D #201C49 #342D75 #483EA1 #665CC0

Accessibility & contrast

On white

11.81
#342D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#342D75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D75
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D75#FFFFFF#000000##FFFFFF
##342D751.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#183E4C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342d75;
/* rgb */ color: rgb(52, 45, 117);
/* oklch */ color: oklch(34.9% 0.119 282.7);
Tailwind
colors: {
  custom: {
    50: '#72669d',
    500: '#342d75',
    950: '#000000',
  },
}
SCSS
$custom: #342d75;
$custom-light: #72669d;
$custom-dark: #000000;
JSON
{
  "hex": "#342d75",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 117
  },
  "hsl": {
    "h": 245.833,
    "s": 44.444,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.11902,
    "h": 282.7
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#342D75
secondary
#9FA657
accent
#D454C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342D75

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

Preview Lab → · Contrast checker → · Palette generator →

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