#30165F#30165F

#30165F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.121 H 293.6°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#30165F
RGBrgb(48, 22, 95)
HSLhsl(261, 62%, 23%)
HSVhsv(261, 77%, 37%)
CMYKcmyk(49.5%, 76.8%, 0%, 62.7%)
CIE-LABlab(15.64, 31.10, -38.68)
CIE-LCHlch(15.64, 49.64, 308.80°)
OKLaboklab(28.65% 0.0484 -0.1108)
OKLCHoklch(28.65% 0.121 293.6)
XYZxyz(3.5708, 2.0283, 11.0276)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30165F #455F16
analogous
#16205F #30165F #54165F
triadic
#30165F #5F3016 #165F30
tetradic
#30165F #5F1620 #455F16 #165F54
square
#30165F #5F1620 #455F16 #165F54
split-complementary
#30165F #5F5416 #205F16
monochromatic
#0D0619 #170A2D #30165F #492291 #622DC2

Accessibility & contrast

On white

14.94
#30165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#30165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30165F
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30165F#FFFFFF#000000##FFFFFF
##30165F1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#222939
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #30165f;
/* rgb */ color: rgb(48, 22, 95);
/* oklch */ color: oklch(28.7% 0.121 293.6);
Tailwind
colors: {
  custom: {
    50: '#6e568d',
    500: '#30165f',
    950: '#000000',
  },
}
SCSS
$custom: #30165f;
$custom-light: #6e568d;
$custom-dark: #000000;
JSON
{
  "hex": "#30165f",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 261.37,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28654,
    "c": 0.12093,
    "h": 293.6
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#30165F
secondary
#76963B
accent
#E542AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30165F

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

Preview Lab → · Contrast checker → · Palette generator →

#30165F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva