#340F68#340F68

#340F68 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.140 H 294.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#340F68
RGBrgb(52, 15, 104)
HSLhsl(265, 75%, 23%)
HSVhsv(265, 86%, 41%)
CMYKcmyk(50%, 85.6%, 0%, 59.2%)
CIE-LABlab(15.86, 37.83, -44.26)
CIE-LCHlch(15.86, 58.22, 310.52°)
OKLaboklab(29.2% 0.0585 -0.127)
OKLCHoklch(29.2% 0.14 294.8)
XYZxyz(4.0850, 2.0711, 13.2785)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F68 #43680F
analogous
#0F1668 #340F68 #600F68
triadic
#340F68 #68340F #0F6834
tetradic
#340F68 #680F16 #43680F #0F6860
square
#340F68 #680F16 #43680F #0F6860
split-complementary
#340F68 #68600F #16680F
monochromatic
#0D041B #190733 #340F68 #4F179D #691ED3

Accessibility & contrast

On white

14.85
#340F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#340F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F68
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F68#FFFFFF#000000##FFFFFF
##340F681.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#24293C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #340f68;
/* rgb */ color: rgb(52, 15, 104);
/* oklch */ color: oklch(29.2% 0.140 294.8);
Tailwind
colors: {
  custom: {
    50: '#725394',
    500: '#340f68',
    950: '#000000',
  },
}
SCSS
$custom: #340f68;
$custom-light: #725394;
$custom-dark: #000000;
JSON
{
  "hex": "#340f68",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 264.944,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29201,
    "c": 0.13982,
    "h": 294.8
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#340F68
secondary
#73A132
accent
#F136A4
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #340F68

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

Preview Lab → · Contrast checker → · Palette generator →

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