#30175A#30175A

#30175A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.113 H 295.3°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#30175A
RGBrgb(48, 23, 90)
HSLhsl(262, 59%, 22%)
HSVhsv(262, 74%, 35%)
CMYKcmyk(46.7%, 74.4%, 0%, 64.7%)
CIE-LABlab(15.38, 29.01, -35.76)
CIE-LCHlch(15.38, 46.05, 309.06°)
OKLaboklab(28.33% 0.0483 -0.1023)
OKLCHoklch(28.33% 0.113 295.3)
XYZxyz(3.3703, 1.9793, 9.8753)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30175A #415A17
analogous
#17205A #30175A #52175A
triadic
#30175A #5A3017 #175A30
tetradic
#30175A #5A1720 #415A17 #175A52
square
#30175A #5A1720 #415A17 #175A52
split-complementary
#30175A #5A5217 #205A17
monochromatic
#0D0618 #160B29 #30175A #4A238B #6430BB

Accessibility & contrast

On white

15.05
#30175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#30175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30175A
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30175A#FFFFFF#000000##FFFFFF
##30175A1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#252736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #30175a;
/* rgb */ color: rgb(48, 23, 90);
/* oklch */ color: oklch(28.3% 0.113 295.3);
Tailwind
colors: {
  custom: {
    50: '#6d5689',
    500: '#30175a',
    950: '#000000',
  },
}
SCSS
$custom: #30175a;
$custom-light: #6d5689;
$custom-dark: #000000;
JSON
{
  "hex": "#30175a",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 262.388,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28327,
    "c": 0.11311,
    "h": 295.3
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#30175A
secondary
#71913C
accent
#E245A8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #30175A

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

Preview Lab → · Contrast checker → · Palette generator →

#30175A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva