#342B66#342B66

#342B66 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.3% C 0.100 H 286.7°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#342B66
RGBrgb(52, 43, 102)
HSLhsl(249, 41%, 28%)
HSVhsv(249, 58%, 40%)
CMYKcmyk(49%, 57.8%, 0%, 60%)
CIE-LABlab(21.64, 20.98, -33.53)
CIE-LCHlch(21.64, 39.56, 302.03°)
OKLaboklab(33.31% 0.0286 -0.0956)
OKLCHoklch(33.31% 0.1 286.7)
XYZxyz(4.6776, 3.4169, 12.9809)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B66 #5D662B
analogous
#2B3F66 #342B66 #512B66
triadic
#342B66 #66342B #2B6634
tetradic
#342B66 #662B3F #5D662B #2B6651
square
#342B66 #662B3F #5D662B #2B6651
split-complementary
#342B66 #66512B #3F662B
monochromatic
#0B0916 #1E193B #342B66 #4A3D91 #6354B7

Accessibility & contrast

On white

12.47
#342B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B66
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B66#FFFFFF#000000##FFFFFF
##342B661.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3568
Deuteranopia (green-blind)
#0A3265
Tritanopia (blue-blind)
#243844
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342b66;
/* rgb */ color: rgb(52, 43, 102);
/* oklch */ color: oklch(33.3% 0.100 286.7);
Tailwind
colors: {
  custom: {
    50: '#6f6492',
    500: '#342b66',
    950: '#000000',
  },
}
SCSS
$custom: #342b66;
$custom-light: #6f6492;
$custom-dark: #000000;
JSON
{
  "hex": "#342b66",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 102
  },
  "hsl": {
    "h": 249.153,
    "s": 40.69,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33309,
    "c": 0.09975,
    "h": 286.7
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#342B66
secondary
#8E9855
accent
#D157BE
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#08050D
muted
#7B7A7E

Preview Lab

Preview with #342B66

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

Preview Lab → · Contrast checker → · Palette generator →

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