#30175D#30175D

#30175D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.117 H 294.1°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#30175D
RGBrgb(48, 23, 93)
HSLhsl(261, 60%, 23%)
HSVhsv(261, 75%, 36%)
CMYKcmyk(48.4%, 75.3%, 0%, 63.5%)
CIE-LABlab(15.65, 29.93, -37.32)
CIE-LCHlch(15.65, 47.84, 308.73°)
OKLaboklab(28.61% 0.0478 -0.1069)
OKLCHoklch(28.61% 0.117 294.1)
XYZxyz(3.5006, 2.0314, 10.5615)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30175D #445D17
analogous
#17215D #30175D #53175D
triadic
#30175D #5D3017 #175D30
tetradic
#30175D #5D1721 #445D17 #175D53
square
#30175D #5D1721 #445D17 #175D53
split-complementary
#30175D #5D5317 #215D17
monochromatic
#0D0619 #170B2C #30175D #49238E #632FBF

Accessibility & contrast

On white

14.93
#30175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#30175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30175D
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30175D#FFFFFF#000000##FFFFFF
##30175D1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#232938
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #30175d;
/* rgb */ color: rgb(48, 23, 93);
/* oklch */ color: oklch(28.6% 0.117 294.1);
Tailwind
colors: {
  custom: {
    50: '#6d568c',
    500: '#30175d',
    950: '#000000',
  },
}
SCSS
$custom: #30175d;
$custom-light: #6d568c;
$custom-dark: #000000;
JSON
{
  "hex": "#30175d",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 261.429,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28607,
    "c": 0.11704,
    "h": 294.1
  },
  "luminance": 0.02031
}

Semantic roles & 50–950 ramp

primary
#30175D
secondary
#74943C
accent
#E344AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30175D

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

Preview Lab → · Contrast checker → · Palette generator →

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