#30185A#30185A

#30185A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.112 H 295.0°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#30185A
RGBrgb(48, 24, 90)
HSLhsl(262, 58%, 22%)
HSVhsv(262, 73%, 35%)
CMYKcmyk(46.7%, 73.3%, 0%, 64.7%)
CIE-LABlab(15.59, 28.43, -35.41)
CIE-LCHlch(15.59, 45.41, 308.76°)
OKLaboklab(28.48% 0.0472 -0.1013)
OKLCHoklch(28.48% 0.112 295)
XYZxyz(3.3905, 2.0197, 9.8821)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30185A #425A18
analogous
#18215A #30185A #51185A
triadic
#30185A #5A3018 #185A30
tetradic
#30185A #5A1821 #425A18 #185A51
square
#30185A #5A1821 #425A18 #185A51
split-complementary
#30185A #5A5118 #215A18
monochromatic
#0D0618 #160B2A #30185A #4A258A #6432BB

Accessibility & contrast

On white

14.96
#30185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#30185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30185A
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30185A#FFFFFF#000000##FFFFFF
##30185A1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#252836
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #30185a;
/* rgb */ color: rgb(48, 24, 90);
/* oklch */ color: oklch(28.5% 0.112 295.0);
Tailwind
colors: {
  custom: {
    50: '#6d5789',
    500: '#30185a',
    950: '#000000',
  },
}
SCSS
$custom: #30185a;
$custom-light: #6d5789;
$custom-dark: #000000;
JSON
{
  "hex": "#30185a",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 261.818,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28479,
    "c": 0.11171,
    "h": 295
  },
  "luminance": 0.0202
}

Semantic roles & 50–950 ramp

primary
#30185A
secondary
#72913D
accent
#E147A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #30185A

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

Preview Lab → · Contrast checker → · Palette generator →

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