#30185B#30185B

#30185B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.113 H 294.6°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#30185B
RGBrgb(48, 24, 91)
HSLhsl(261, 58%, 23%)
HSVhsv(261, 74%, 36%)
CMYKcmyk(47.3%, 73.6%, 0%, 64.3%)
CIE-LABlab(15.68, 28.73, -35.94)
CIE-LCHlch(15.68, 46.01, 308.64°)
OKLaboklab(28.57% 0.047 -0.1028)
OKLCHoklch(28.57% 0.113 294.6)
XYZxyz(3.4334, 2.0369, 10.1078)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30185B #435B18
analogous
#18215B #30185B #52185B
triadic
#30185B #5B3018 #185B30
tetradic
#30185B #5B1821 #435B18 #185B52
square
#30185B #5B1821 #435B18 #185B52
split-complementary
#30185B #5B5218 #215B18
monochromatic
#0D0618 #160B2B #30185B #4A258B #6332BC

Accessibility & contrast

On white

14.92
#30185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30185B
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30185B#FFFFFF#000000##FFFFFF
##30185B1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30185b;
/* rgb */ color: rgb(48, 24, 91);
/* oklch */ color: oklch(28.6% 0.113 294.6);
Tailwind
colors: {
  custom: {
    50: '#6d578a',
    500: '#30185b',
    950: '#000000',
  },
}
SCSS
$custom: #30185b;
$custom-light: #6d578a;
$custom-dark: #000000;
JSON
{
  "hex": "#30185b",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 261.493,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28571,
    "c": 0.11304,
    "h": 294.6
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#30185B
secondary
#73923D
accent
#E146AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30185B

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

Preview Lab → · Contrast checker → · Palette generator →

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