#340230#340230

#340230 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.098 H 331.9°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#340230
RGBrgb(52, 2, 48)
HSLhsl(305, 93%, 11%)
HSVhsv(305, 96%, 20%)
CMYKcmyk(0%, 96.2%, 7.7%, 79.6%)
CIE-LABlab(8.88, 30.12, -16.70)
CIE-LCHlch(8.88, 34.44, 330.99°)
OKLaboklab(22.77% 0.0865 -0.0461)
OKLCHoklch(22.77% 0.098 331.9)
XYZxyz(1.9714, 0.9871, 2.8824)
Luminance0.0099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340230 #023406
analogous
#1F0234 #340230 #340217
triadic
#340230 #303402 #023034
tetradic
#340230 #341F02 #023406 #021734
square
#340230 #341F02 #023406 #021734
split-complementary
#340230 #173402 #02341F
monochromatic
#1D011B #1D011B #340230 #6F0466 #AA079D

Accessibility & contrast

On white

17.54
#340230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#340230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340230
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340230#FFFFFF#000000##FFFFFF
##3402301.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001531
Deuteranopia (green-blind)
#131C2F
Tritanopia (blue-blind)
#370719
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #340230;
/* rgb */ color: rgb(52, 2, 48);
/* oklch */ color: oklch(22.8% 0.098 331.9);
Tailwind
colors: {
  custom: {
    50: '#6e4968',
    500: '#340230',
    950: '#000000',
  },
}
SCSS
$custom: #340230;
$custom-light: #6e4968;
$custom-dark: #000000;
JSON
{
  "hex": "#340230",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 48
  },
  "hsl": {
    "h": 304.8,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22767,
    "c": 0.098,
    "h": 331.9
  },
  "luminance": 0.00987
}

Semantic roles & 50–950 ramp

primary
#340230
secondary
#1A7821
accent
#FF3A29
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340230

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

Preview Lab → · Contrast checker → · Palette generator →

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