#30175C#30175C

#30175C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.116 H 294.5°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#30175C
RGBrgb(48, 23, 92)
HSLhsl(262, 60%, 23%)
HSVhsv(262, 75%, 36%)
CMYKcmyk(47.8%, 75%, 0%, 63.9%)
CIE-LABlab(15.56, 29.62, -36.80)
CIE-LCHlch(15.56, 47.24, 308.83°)
OKLaboklab(28.51% 0.048 -0.1053)
OKLCHoklch(28.51% 0.116 294.5)
XYZxyz(3.4566, 2.0138, 10.3297)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30175C #435C17
analogous
#17215C #30175C #52175C
triadic
#30175C #5C3017 #175C30
tetradic
#30175C #5C1721 #435C17 #175C52
square
#30175C #5C1721 #435C17 #175C52
split-complementary
#30175C #5C5217 #215C17
monochromatic
#0D0618 #160B2B #30175C #4A238D #632FBE

Accessibility & contrast

On white

14.97
#30175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30175C
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30175C#FFFFFF#000000##FFFFFF
##30175C1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#242837
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #30175c;
/* rgb */ color: rgb(48, 23, 92);
/* oklch */ color: oklch(28.5% 0.116 294.5);
Tailwind
colors: {
  custom: {
    50: '#6d568b',
    500: '#30175c',
    950: '#000000',
  },
}
SCSS
$custom: #30175c;
$custom-light: #6d568b;
$custom-dark: #000000;
JSON
{
  "hex": "#30175c",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 261.739,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28513,
    "c": 0.11573,
    "h": 294.5
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#30175C
secondary
#73933C
accent
#E345AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30175C

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

Preview Lab → · Contrast checker → · Palette generator →

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