#30185D#30185D

#30185D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.116 H 293.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#30185D
RGBrgb(48, 24, 93)
HSLhsl(261, 59%, 23%)
HSVhsv(261, 74%, 36%)
CMYKcmyk(48.4%, 74.2%, 0%, 63.5%)
CIE-LABlab(15.86, 29.35, -36.98)
CIE-LCHlch(15.86, 47.21, 308.43°)
OKLaboklab(28.76% 0.0466 -0.1059)
OKLCHoklch(28.76% 0.116 293.8)
XYZxyz(3.5208, 2.0719, 10.5682)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30185D #455D18
analogous
#18225D #30185D #52185D
triadic
#30185D #5D3018 #185D30
tetradic
#30185D #5D1822 #455D18 #185D52
square
#30185D #5D1822 #455D18 #185D52
split-complementary
#30185D #5D5218 #225D18
monochromatic
#0D0618 #170B2C #30185D #49258E #6231BE

Accessibility & contrast

On white

14.85
#30185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30185D
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30185D#FFFFFF#000000##FFFFFF
##30185D1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.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: #30185d;
/* rgb */ color: rgb(48, 24, 93);
/* oklch */ color: oklch(28.8% 0.116 293.8);
Tailwind
colors: {
  custom: {
    50: '#6d578c',
    500: '#30185d',
    950: '#000000',
  },
}
SCSS
$custom: #30185d;
$custom-light: #6d578c;
$custom-dark: #000000;
JSON
{
  "hex": "#30185d",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 260.87,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28756,
    "c": 0.11568,
    "h": 293.8
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30185D

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

Preview Lab → · Contrast checker → · Palette generator →

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