#342B68#342B68

#342B68 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.5% C 0.103 H 286.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#342B68
RGBrgb(52, 43, 104)
HSLhsl(249, 41%, 29%)
HSVhsv(249, 59%, 41%)
CMYKcmyk(50%, 58.7%, 0%, 59.2%)
CIE-LABlab(21.79, 21.65, -34.60)
CIE-LCHlch(21.79, 40.81, 302.04°)
OKLaboklab(33.47% 0.0287 -0.0987)
OKLCHoklch(33.47% 0.103 286.2)
XYZxyz(4.7780, 3.4571, 13.5095)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B68 #5F682B
analogous
#2B4168 #342B68 #532B68
triadic
#342B68 #68342B #2B6834
tetradic
#342B68 #682B41 #5F682B #2B6853
square
#342B68 #682B41 #5F682B #2B6853
split-complementary
#342B68 #68532B #41682B
monochromatic
#0B0916 #1E193D #342B68 #4A3D93 #6455B9

Accessibility & contrast

On white

12.42
#342B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#342B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B68
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B68#FFFFFF#000000##FFFFFF
##342B681.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08366A
Deuteranopia (green-blind)
#063267
Tritanopia (blue-blind)
#233845
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342b68;
/* rgb */ color: rgb(52, 43, 104);
/* oklch */ color: oklch(33.5% 0.103 286.2);
Tailwind
colors: {
  custom: {
    50: '#706494',
    500: '#342b68',
    950: '#000000',
  },
}
SCSS
$custom: #342b68;
$custom-light: #706494;
$custom-dark: #000000;
JSON
{
  "hex": "#342b68",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 104
  },
  "hsl": {
    "h": 248.852,
    "s": 41.497,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33465,
    "c": 0.10276,
    "h": 286.2
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#342B68
secondary
#909A55
accent
#D156BF
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#08050D
muted
#7B7A7E

Preview Lab

Preview with #342B68

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

Preview Lab → · Contrast checker → · Palette generator →

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