#342F68#342F68

#342F68 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.3% C 0.096 H 284.0°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#342F68
RGBrgb(52, 47, 104)
HSLhsl(245, 38%, 30%)
HSVhsv(245, 55%, 41%)
CMYKcmyk(50%, 54.8%, 0%, 59.2%)
CIE-LABlab(22.87, 18.94, -32.86)
CIE-LCHlch(22.87, 37.93, 299.95°)
OKLaboklab(34.27% 0.0234 -0.0936)
OKLCHoklch(34.27% 0.096 284)
XYZxyz(4.9306, 3.7623, 13.5604)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F68 #63682F
analogous
#2F4768 #342F68 #512F68
triadic
#342F68 #68342F #2F6834
tetradic
#342F68 #682F47 #63682F #2F6851
square
#342F68 #682F47 #63682F #2F6851
split-complementary
#342F68 #68512F #47682F
monochromatic
#0B0A15 #1F1C3E #342F68 #494292 #645CB5

Accessibility & contrast

On white

11.98
#342F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#342F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F68
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F68#FFFFFF#000000##FFFFFF
##342F681.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14386A
Deuteranopia (green-blind)
#113567
Tritanopia (blue-blind)
#223B46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342f68;
/* rgb */ color: rgb(52, 47, 104);
/* oklch */ color: oklch(34.3% 0.096 284.0);
Tailwind
colors: {
  custom: {
    50: '#6f6793',
    500: '#342f68',
    950: '#000000',
  },
}
SCSS
$custom: #342f68;
$custom-light: #6f6793;
$custom-dark: #000000;
JSON
{
  "hex": "#342f68",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 104
  },
  "hsl": {
    "h": 245.263,
    "s": 37.748,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3427,
    "c": 0.09644,
    "h": 284
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#342F68
secondary
#949959
accent
#CE5AC4
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#08060D
muted
#7B7A7E

Preview Lab

Preview with #342F68

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

Preview Lab → · Contrast checker → · Palette generator →

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