#342E68#342E68

#342E68 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.098 H 284.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#342E68
RGBrgb(52, 46, 104)
HSLhsl(246, 39%, 29%)
HSVhsv(246, 56%, 41%)
CMYKcmyk(50%, 55.8%, 0%, 59.2%)
CIE-LABlab(22.60, 19.62, -33.30)
CIE-LCHlch(22.60, 38.65, 300.50°)
OKLaboklab(34.07% 0.0247 -0.0949)
OKLCHoklch(34.07% 0.098 284.6)
XYZxyz(4.8911, 3.6833, 13.5472)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E68 #62682E
analogous
#2E4568 #342E68 #512E68
triadic
#342E68 #68342E #2E6834
tetradic
#342E68 #682E45 #62682E #2E6851
square
#342E68 #682E45 #62682E #2E6851
split-complementary
#342E68 #68512E #45682E
monochromatic
#0B0915 #1F1B3E #342E68 #494192 #645AB6

Accessibility & contrast

On white

12.09
#342E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#342E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E68
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E68#FFFFFF#000000##FFFFFF
##342E681.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11386A
Deuteranopia (green-blind)
#0E3467
Tritanopia (blue-blind)
#223B46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342e68;
/* rgb */ color: rgb(52, 46, 104);
/* oklch */ color: oklch(34.1% 0.098 284.6);
Tailwind
colors: {
  custom: {
    50: '#706693',
    500: '#342e68',
    950: '#000000',
  },
}
SCSS
$custom: #342e68;
$custom-light: #706693;
$custom-dark: #000000;
JSON
{
  "hex": "#342e68",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 104
  },
  "hsl": {
    "h": 246.207,
    "s": 38.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34065,
    "c": 0.09803,
    "h": 284.6
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#342E68
secondary
#939A58
accent
#CF59C2
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#08060D
muted
#7B7A7E

Preview Lab

Preview with #342E68

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

Preview Lab → · Contrast checker → · Palette generator →

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