#342C7F#342C7F

#342C7F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.135 H 281.4°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#342C7F
RGBrgb(52, 44, 127)
HSLhsl(246, 49%, 34%)
HSVhsv(246, 65%, 50%)
CMYKcmyk(59.1%, 65.4%, 0%, 50.2%)
CIE-LABlab(23.88, 28.80, -45.94)
CIE-LCHlch(23.88, 54.22, 302.08°)
OKLaboklab(35.58% 0.0267 -0.132)
OKLCHoklch(35.58% 0.135 281.4)
XYZxyz(6.1464, 4.0633, 20.5350)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C7F #777F2C
analogous
#2C4D7F #342C7F #5D2C7F
triadic
#342C7F #7F342C #2C7F34
tetradic
#342C7F #7F2C4D #777F2C #2C7F5D
square
#342C7F #7F2C4D #777F2C #2C7F5D
split-complementary
#342C7F #7F5D2C #4D7F2C
monochromatic
#0F0D24 #211C52 #342C7F #473CAC #685EC7

Accessibility & contrast

On white

11.58
#342C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C7F
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C7F#FFFFFF#000000##FFFFFF
##342C7F1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#0B4151
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342c7f;
/* rgb */ color: rgb(52, 44, 127);
/* oklch */ color: oklch(35.6% 0.135 281.4);
Tailwind
colors: {
  custom: {
    50: '#7465a5',
    500: '#342c7f',
    950: '#000000',
  },
}
SCSS
$custom: #342c7f;
$custom-light: #7465a5;
$custom-dark: #000000;
JSON
{
  "hex": "#342c7f",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 245.783,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35582,
    "c": 0.1347,
    "h": 281.4
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

primary
#342C7F
secondary
#A5AD59
accent
#D850CB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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