#30175F#30175F

#30175F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.120 H 293.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#30175F
RGBrgb(48, 23, 95)
HSLhsl(261, 61%, 23%)
HSVhsv(261, 76%, 37%)
CMYKcmyk(49.5%, 75.8%, 0%, 62.7%)
CIE-LABlab(15.84, 30.54, -38.35)
CIE-LCHlch(15.84, 49.03, 308.53°)
OKLaboklab(28.8% 0.0473 -0.1099)
OKLCHoklch(28.8% 0.12 293.3)
XYZxyz(3.5903, 2.0673, 11.0341)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30175F #465F17
analogous
#17225F #30175F #54175F
triadic
#30175F #5F3017 #175F30
tetradic
#30175F #5F1722 #465F17 #175F54
square
#30175F #5F1722 #465F17 #175F54
split-complementary
#30175F #5F5417 #225F17
monochromatic
#0C0619 #170B2E #30175F #492390 #622FC2

Accessibility & contrast

On white

14.86
#30175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30175F
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30175F#FFFFFF#000000##FFFFFF
##30175F1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.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: #30175f;
/* rgb */ color: rgb(48, 23, 95);
/* oklch */ color: oklch(28.8% 0.120 293.3);
Tailwind
colors: {
  custom: {
    50: '#6e568d',
    500: '#30175f',
    950: '#000000',
  },
}
SCSS
$custom: #30175f;
$custom-light: #6e568d;
$custom-dark: #000000;
JSON
{
  "hex": "#30175f",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 260.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28796,
    "c": 0.11964,
    "h": 293.3
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#30175F
secondary
#77963C
accent
#E444AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30175F

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

Preview Lab → · Contrast checker → · Palette generator →

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