#342B6B#342B6B

#342B6B is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.7% C 0.107 H 285.5°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#342B6B
RGBrgb(52, 43, 107)
HSLhsl(248, 43%, 29%)
HSVhsv(248, 60%, 42%)
CMYKcmyk(51.4%, 59.8%, 0%, 58%)
CIE-LABlab(22.01, 22.66, -36.18)
CIE-LCHlch(22.01, 42.69, 302.05°)
OKLaboklab(33.7% 0.0287 -0.1033)
OKLCHoklch(33.7% 0.107 285.5)
XYZxyz(4.9331, 3.5191, 14.3264)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B6B #626B2B
analogous
#2B426B #342B6B #542B6B
triadic
#342B6B #6B342B #2B6B34
tetradic
#342B6B #6B2B42 #626B2B #2B6B54
square
#342B6B #6B2B42 #626B2B #2B6B54
split-complementary
#342B6B #6B542B #426B2B
monochromatic
#0B0916 #1F193F #342B6B #493D97 #6456BB

Accessibility & contrast

On white

12.33
#342B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#342B6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B6B
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B6B#FFFFFF#000000##FFFFFF
##342B6B1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02366D
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#213946
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342b6b;
/* rgb */ color: rgb(52, 43, 107);
/* oklch */ color: oklch(33.7% 0.107 285.5);
Tailwind
colors: {
  custom: {
    50: '#706496',
    500: '#342b6b',
    950: '#000000',
  },
}
SCSS
$custom: #342b6b;
$custom-light: #706496;
$custom-dark: #000000;
JSON
{
  "hex": "#342b6b",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 107
  },
  "hsl": {
    "h": 248.438,
    "s": 42.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33703,
    "c": 0.10726,
    "h": 285.5
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#342B6B
secondary
#939D55
accent
#D255C1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050D
muted
#7B7A7E

Preview Lab

Preview with #342B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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