#342F6F#342F6F

#342F6F is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.107 H 282.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#342F6F
RGBrgb(52, 47, 111)
HSLhsl(245, 41%, 31%)
HSVhsv(245, 58%, 44%)
CMYKcmyk(53.2%, 57.7%, 0%, 56.5%)
CIE-LABlab(23.37, 21.32, -36.57)
CIE-LCHlch(23.37, 42.33, 300.24°)
OKLaboklab(34.81% 0.0238 -0.1045)
OKLCHoklch(34.81% 0.107 282.8)
XYZxyz(5.3011, 3.9105, 15.5113)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F6F #6A6F2F
analogous
#2F4A6F #342F6F #542F6F
triadic
#342F6F #6F342F #2F6F34
tetradic
#342F6F #6F2F4A #6A6F2F #2F6F54
square
#342F6F #6F2F4A #6A6F2F #2F6F54
split-complementary
#342F6F #6F542F #4A6F2F
monochromatic
#0C0B19 #201D44 #342F6F #48419A #655EBB

Accessibility & contrast

On white

11.78
#342F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#342F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F6F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F6F#FFFFFF#000000##FFFFFF
##342F6F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093A71
Deuteranopia (green-blind)
#03366E
Tritanopia (blue-blind)
#1D3D4A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342f6f;
/* rgb */ color: rgb(52, 47, 111);
/* oklch */ color: oklch(34.8% 0.107 282.8);
Tailwind
colors: {
  custom: {
    50: '#716799',
    500: '#342f6f',
    950: '#000000',
  },
}
SCSS
$custom: #342f6f;
$custom-light: #716799;
$custom-dark: #000000;
JSON
{
  "hex": "#342f6f",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 111
  },
  "hsl": {
    "h": 244.688,
    "s": 40.506,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34807,
    "c": 0.10713,
    "h": 282.8
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#342F6F
secondary
#9BA059
accent
#D057C7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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