#342D6A#342D6A

#342D6A is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.0% C 0.103 H 284.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#342D6A
RGBrgb(52, 45, 106)
HSLhsl(247, 40%, 30%)
HSVhsv(247, 58%, 42%)
CMYKcmyk(50.9%, 57.5%, 0%, 58.4%)
CIE-LABlab(22.47, 20.97, -34.80)
CIE-LCHlch(22.47, 40.63, 301.07°)
OKLaboklab(34.02% 0.0261 -0.0993)
OKLCHoklch(34.02% 0.103 284.8)
XYZxyz(4.9553, 3.6472, 14.0758)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D6A #636A2D
analogous
#2D456A #342D6A #532D6A
triadic
#342D6A #6A342D #2D6A34
tetradic
#342D6A #6A2D45 #636A2D #2D6A53
square
#342D6A #6A2D45 #636A2D #2D6A53
split-complementary
#342D6A #6A532D #456A2D
monochromatic
#0B0915 #1F1B3F #342D6A #493F95 #6459B8

Accessibility & contrast

On white

12.14
#342D6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#342D6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D6A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D6A#FFFFFF#000000##FFFFFF
##342D6A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B376C
Deuteranopia (green-blind)
#083469
Tritanopia (blue-blind)
#213A46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342d6a;
/* rgb */ color: rgb(52, 45, 106);
/* oklch */ color: oklch(34.0% 0.103 284.8);
Tailwind
colors: {
  custom: {
    50: '#706695',
    500: '#342d6a',
    950: '#000000',
  },
}
SCSS
$custom: #342d6a;
$custom-light: #706695;
$custom-dark: #000000;
JSON
{
  "hex": "#342d6a",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 106
  },
  "hsl": {
    "h": 246.885,
    "s": 40.397,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34017,
    "c": 0.10266,
    "h": 284.8
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#342D6A
secondary
#949C57
accent
#D058C2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060D
muted
#7B7A7E

Preview Lab

Preview with #342D6A

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

Preview Lab → · Contrast checker → · Palette generator →

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