#30175B#30175B

#30175B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.114 H 294.9°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#30175B
RGBrgb(48, 23, 91)
HSLhsl(262, 60%, 22%)
HSVhsv(262, 75%, 36%)
CMYKcmyk(47.3%, 74.7%, 0%, 64.3%)
CIE-LABlab(15.47, 29.32, -36.28)
CIE-LCHlch(15.47, 46.65, 308.94°)
OKLaboklab(28.42% 0.0482 -0.1038)
OKLCHoklch(28.42% 0.114 294.9)
XYZxyz(3.4131, 1.9964, 10.1010)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30175B #425B17
analogous
#17205B #30175B #52175B
triadic
#30175B #5B3017 #175B30
tetradic
#30175B #5B1720 #425B17 #175B52
square
#30175B #5B1720 #425B17 #175B52
split-complementary
#30175B #5B5217 #205B17
monochromatic
#0D0618 #160B2A #30175B #4A238C #6430BD

Accessibility & contrast

On white

15.01
#30175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30175B
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30175B#FFFFFF#000000##FFFFFF
##30175B1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30175b;
/* rgb */ color: rgb(48, 23, 91);
/* oklch */ color: oklch(28.4% 0.114 294.9);
Tailwind
colors: {
  custom: {
    50: '#6d568a',
    500: '#30175b',
    950: '#000000',
  },
}
SCSS
$custom: #30175b;
$custom-light: #6d568a;
$custom-dark: #000000;
JSON
{
  "hex": "#30175b",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 262.059,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2842,
    "c": 0.11443,
    "h": 294.9
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#30175B
secondary
#72923C
accent
#E345A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30175B

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

Preview Lab → · Contrast checker → · Palette generator →

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