#330F68#330F68

#330F68 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.1% C 0.140 H 294.0°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#330F68
RGBrgb(51, 15, 104)
HSLhsl(264, 75%, 23%)
HSVhsv(264, 86%, 41%)
CMYKcmyk(51%, 85.6%, 0%, 59.2%)
CIE-LABlab(15.72, 37.68, -44.48)
CIE-LCHlch(15.72, 58.30, 310.27°)
OKLaboklab(29.08% 0.0568 -0.1277)
OKLCHoklch(29.08% 0.14 294)
XYZxyz(4.0341, 2.0448, 13.2762)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F68 #44680F
analogous
#0F1768 #330F68 #5F0F68
triadic
#330F68 #68330F #0F6833
tetradic
#330F68 #680F17 #44680F #0F685F
square
#330F68 #680F17 #44680F #0F685F
split-complementary
#330F68 #685F0F #17680F
monochromatic
#0D041B #190733 #330F68 #4D179D #671ED3

Accessibility & contrast

On white

14.90
#330F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F68
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F68#FFFFFF#000000##FFFFFF
##330F681.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330f68;
/* rgb */ color: rgb(51, 15, 104);
/* oklch */ color: oklch(29.1% 0.140 294.0);
Tailwind
colors: {
  custom: {
    50: '#725394',
    500: '#330f68',
    950: '#000000',
  },
}
SCSS
$custom: #330f68;
$custom-light: #725394;
$custom-dark: #000000;
JSON
{
  "hex": "#330f68",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 264.27,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29077,
    "c": 0.13976,
    "h": 294
  },
  "luminance": 0.02045
}

Semantic roles & 50–950 ramp

primary
#330F68
secondary
#74A132
accent
#F136A6
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #330F68

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

Preview Lab → · Contrast checker → · Palette generator →

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