#3A0F68#3A0F68

#3A0F68 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.140 H 299.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#3A0F68
RGBrgb(58, 15, 104)
HSLhsl(269, 75%, 23%)
HSVhsv(269, 86%, 41%)
CMYKcmyk(44.2%, 85.6%, 0%, 59.2%)
CIE-LABlab(16.70, 38.76, -42.84)
CIE-LCHlch(16.70, 57.77, 312.14°)
OKLaboklab(29.97% 0.0686 -0.1226)
OKLCHoklch(29.97% 0.14 299.2)
XYZxyz(4.4138, 2.2406, 13.2940)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F68 #3D680F
analogous
#0F1068 #3A0F68 #660F68
triadic
#3A0F68 #683A0F #0F683A
tetradic
#3A0F68 #680F10 #3D680F #0F6866
square
#3A0F68 #680F10 #3D680F #0F6866
split-complementary
#3A0F68 #68660F #10680F
monochromatic
#0F041B #1C0733 #3A0F68 #58179D #761ED3

Accessibility & contrast

On white

14.50
#3A0F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3A0F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F68
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F68#FFFFFF#000000##FFFFFF
##3A0F681.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#2F283C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a0f68;
/* rgb */ color: rgb(58, 15, 104);
/* oklch */ color: oklch(30.0% 0.140 299.2);
Tailwind
colors: {
  custom: {
    50: '#765494',
    500: '#3a0f68',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f68;
$custom-light: #765494;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f68",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 268.989,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29973,
    "c": 0.14048,
    "h": 299.2
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#3A0F68
secondary
#6BA132
accent
#F13697
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A0F68

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

Preview Lab → · Contrast checker → · Palette generator →

#3A0F68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva