#342245#342245

#342245 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.1% C 0.065 H 306.5°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#342245
RGBrgb(52, 34, 69)
HSLhsl(271, 34%, 20%)
HSVhsv(271, 51%, 27%)
CMYKcmyk(24.6%, 50.7%, 0%, 72.9%)
CIE-LABlab(17.01, 16.83, -18.83)
CIE-LCHlch(17.01, 25.25, 311.79°)
OKLaboklab(29.14% 0.0389 -0.0525)
OKLCHoklch(29.14% 0.065 306.5)
XYZxyz(3.0622, 2.3038, 5.9124)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342245 #334522
analogous
#222245 #342245 #452245
triadic
#342245 #453422 #224534
tetradic
#342245 #452222 #334522 #224545
square
#342245 #452222 #334522 #224545
split-complementary
#342245 #454522 #224522
monochromatic
#0F0A14 #150E1C #342245 #53366E #724A97

Accessibility & contrast

On white

14.38
#342245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#342245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342245
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342245#FFFFFF#000000##FFFFFF
##3422451.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192946
Deuteranopia (green-blind)
#1E2A44
Tritanopia (blue-blind)
#312830
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #342245;
/* rgb */ color: rgb(52, 34, 69);
/* oklch */ color: oklch(29.1% 0.065 306.5);
Tailwind
colors: {
  custom: {
    50: '#6c5d79',
    500: '#342245',
    950: '#000000',
  },
}
SCSS
$custom: #342245;
$custom-light: #6c5d79;
$custom-dark: #000000;
JSON
{
  "hex": "#342245",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 69
  },
  "hsl": {
    "h": 270.857,
    "s": 33.981,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29141,
    "c": 0.06533,
    "h": 306.5
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#342245
secondary
#61794A
accent
#CA5E92
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070409
muted
#7A797B

Preview Lab

Preview with #342245

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

Preview Lab → · Contrast checker → · Palette generator →

#342245 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva