#342B65#342B65

#342B65 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.2% C 0.098 H 286.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#342B65
RGBrgb(52, 43, 101)
HSLhsl(249, 40%, 28%)
HSVhsv(249, 57%, 40%)
CMYKcmyk(48.5%, 57.4%, 0%, 60.4%)
CIE-LABlab(21.57, 20.65, -33.00)
CIE-LCHlch(21.57, 38.93, 302.04°)
OKLaboklab(33.23% 0.0286 -0.094)
OKLCHoklch(33.23% 0.098 286.9)
XYZxyz(4.6283, 3.3972, 12.7213)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B65 #5C652B
analogous
#2B3F65 #342B65 #512B65
triadic
#342B65 #65342B #2B6534
tetradic
#342B65 #652B3F #5C652B #2B6551
square
#342B65 #652B3F #5C652B #2B6551
split-complementary
#342B65 #65512B #3F652B
monochromatic
#0B0915 #1E193A #342B65 #4A3D90 #6354B6

Accessibility & contrast

On white

12.50
#342B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#342B65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B65
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B65#FFFFFF#000000##FFFFFF
##342B651.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3567
Deuteranopia (green-blind)
#0C3264
Tritanopia (blue-blind)
#243843
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342b65;
/* rgb */ color: rgb(52, 43, 101);
/* oklch */ color: oklch(33.2% 0.098 286.9);
Tailwind
colors: {
  custom: {
    50: '#6f6491',
    500: '#342b65',
    950: '#000000',
  },
}
SCSS
$custom: #342b65;
$custom-light: #6f6491;
$custom-dark: #000000;
JSON
{
  "hex": "#342b65",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 101
  },
  "hsl": {
    "h": 249.31,
    "s": 40.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33231,
    "c": 0.09823,
    "h": 286.9
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#342B65
secondary
#8D9755
accent
#D058BD
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#08050D
muted
#7B7A7E

Preview Lab

Preview with #342B65

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

Preview Lab → · Contrast checker → · Palette generator →

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