#342E66#342E66

#342E66 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.095 H 285.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#342E66
RGBrgb(52, 46, 102)
HSLhsl(246, 38%, 29%)
HSVhsv(246, 55%, 40%)
CMYKcmyk(49%, 54.9%, 0%, 60%)
CIE-LABlab(22.45, 18.94, -32.23)
CIE-LCHlch(22.45, 37.38, 300.44°)
OKLaboklab(33.91% 0.0246 -0.0917)
OKLCHoklch(33.91% 0.095 285)
XYZxyz(4.7907, 3.6432, 13.0186)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E66 #60662E
analogous
#2E4466 #342E66 #502E66
triadic
#342E66 #66342E #2E6634
tetradic
#342E66 #662E44 #60662E #2E6650
square
#342E66 #662E44 #60662E #2E6650
split-complementary
#342E66 #66502E #44662E
monochromatic
#0B0A15 #1E1B3C #342E66 #4A4190 #645AB5

Accessibility & contrast

On white

12.15
#342E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#342E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E66
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E66#FFFFFF#000000##FFFFFF
##342E661.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143768
Deuteranopia (green-blind)
#123465
Tritanopia (blue-blind)
#243A45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342e66;
/* rgb */ color: rgb(52, 46, 102);
/* oklch */ color: oklch(33.9% 0.095 285.0);
Tailwind
colors: {
  custom: {
    50: '#6f6692',
    500: '#342e66',
    950: '#000000',
  },
}
SCSS
$custom: #342e66;
$custom-light: #6f6692;
$custom-dark: #000000;
JSON
{
  "hex": "#342e66",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 102
  },
  "hsl": {
    "h": 246.429,
    "s": 37.838,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33914,
    "c": 0.09495,
    "h": 285
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#342E66
secondary
#919858
accent
#CE5AC1
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#08060D
muted
#7B7A7E

Preview Lab

Preview with #342E66

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

Preview Lab → · Contrast checker → · Palette generator →

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