#30185C#30185C

#30185C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.114 H 294.2°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#30185C
RGBrgb(48, 24, 92)
HSLhsl(261, 59%, 23%)
HSVhsv(261, 74%, 36%)
CMYKcmyk(47.8%, 73.9%, 0%, 63.9%)
CIE-LABlab(15.77, 29.04, -36.46)
CIE-LCHlch(15.77, 46.61, 308.54°)
OKLaboklab(28.66% 0.0468 -0.1043)
OKLCHoklch(28.66% 0.114 294.2)
XYZxyz(3.4768, 2.0543, 10.3365)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30185C #445C18
analogous
#18225C #30185C #52185C
triadic
#30185C #5C3018 #185C30
tetradic
#30185C #5C1822 #445C18 #185C52
square
#30185C #5C1822 #445C18 #185C52
split-complementary
#30185C #5C5218 #225C18
monochromatic
#0D0618 #170B2B #30185C #49258D #6331BD

Accessibility & contrast

On white

14.89
#30185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#30185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30185C
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30185C#FFFFFF#000000##FFFFFF
##30185C1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30185c;
/* rgb */ color: rgb(48, 24, 92);
/* oklch */ color: oklch(28.7% 0.114 294.2);
Tailwind
colors: {
  custom: {
    50: '#6d578b',
    500: '#30185c',
    950: '#000000',
  },
}
SCSS
$custom: #30185c;
$custom-light: #6d578b;
$custom-dark: #000000;
JSON
{
  "hex": "#30185c",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 261.176,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28663,
    "c": 0.11436,
    "h": 294.2
  },
  "luminance": 0.02054
}

Semantic roles & 50–950 ramp

primary
#30185C
secondary
#74933D
accent
#E246AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30185C

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

Preview Lab → · Contrast checker → · Palette generator →

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