#342D67#342D67

#342D67 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.098 H 285.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#342D67
RGBrgb(52, 45, 103)
HSLhsl(247, 39%, 29%)
HSVhsv(247, 56%, 40%)
CMYKcmyk(49.5%, 56.3%, 0%, 59.6%)
CIE-LABlab(22.25, 19.96, -33.20)
CIE-LCHlch(22.25, 38.74, 301.01°)
OKLaboklab(33.79% 0.026 -0.0946)
OKLCHoklch(33.79% 0.098 285.4)
XYZxyz(4.8020, 3.5859, 13.2685)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D67 #60672D
analogous
#2D4367 #342D67 #512D67
triadic
#342D67 #67342D #2D6734
tetradic
#342D67 #672D43 #60672D #2D6751
square
#342D67 #672D43 #60672D #2D6751
split-complementary
#342D67 #67512D #43672D
monochromatic
#0B0915 #1E1A3C #342D67 #4A4092 #6458B6

Accessibility & contrast

On white

12.23
#342D67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342D67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D67
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D67#FFFFFF#000000##FFFFFF
##342D671.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103769
Deuteranopia (green-blind)
#0E3366
Tritanopia (blue-blind)
#233A45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342d67;
/* rgb */ color: rgb(52, 45, 103);
/* oklch */ color: oklch(33.8% 0.098 285.4);
Tailwind
colors: {
  custom: {
    50: '#6f6693',
    500: '#342d67',
    950: '#000000',
  },
}
SCSS
$custom: #342d67;
$custom-light: #6f6693;
$custom-dark: #000000;
JSON
{
  "hex": "#342d67",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 103
  },
  "hsl": {
    "h": 247.241,
    "s": 39.189,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33786,
    "c": 0.09809,
    "h": 285.4
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#342D67
secondary
#919957
accent
#CF59C1
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#08060D
muted
#7B7A7E

Preview Lab

Preview with #342D67

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

Preview Lab → · Contrast checker → · Palette generator →

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