#340C53#340C53

#340C53 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.119 H 304.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#340C53
RGBrgb(52, 12, 83)
HSLhsl(274, 75%, 19%)
HSVhsv(274, 86%, 33%)
CMYKcmyk(37.3%, 85.5%, 0%, 67.5%)
CIE-LABlab(13.34, 33.45, -34.32)
CIE-LCHlch(13.34, 47.92, 314.26°)
OKLaboklab(26.81% 0.0682 -0.0978)
OKLCHoklch(26.81% 0.119 304.9)
XYZxyz(3.1086, 1.6176, 8.3304)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C53 #2B530C
analogous
#100C53 #340C53 #530C4E
triadic
#340C53 #53340C #0C5334
tetradic
#340C53 #53100C #2B530C #0C4E53
square
#340C53 #53100C #2B530C #0C4E53
split-complementary
#340C53 #4E530C #0C5310
monochromatic
#11041B #12041E #340C53 #551488 #771BBE

Accessibility & contrast

On white

15.87
#340C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#340C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C53
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C53#FFFFFF#000000##FFFFFF
##340C531.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002155
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#2E1F30
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #340c53;
/* rgb */ color: rgb(52, 12, 83);
/* oklch */ color: oklch(26.8% 0.119 304.9);
Tailwind
colors: {
  custom: {
    50: '#6f5084',
    500: '#340c53',
    950: '#000000',
  },
}
SCSS
$custom: #340c53;
$custom-light: #6f5084;
$custom-dark: #000000;
JSON
{
  "hex": "#340c53",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 273.803,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26812,
    "c": 0.11923,
    "h": 304.9
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#340C53
secondary
#578E2D
accent
#F13688
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #340C53

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

Preview Lab → · Contrast checker → · Palette generator →

#340C53 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva