#30187F#30187F

#30187F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 283.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#30187F
RGBrgb(48, 24, 127)
HSLhsl(254, 68%, 30%)
HSVhsv(254, 81%, 50%)
CMYKcmyk(62.2%, 81.1%, 0%, 50.2%)
CIE-LABlab(19.28, 39.84, -53.49)
CIE-LCHlch(19.28, 66.70, 306.68°)
OKLaboklab(32.21% 0.0375 -0.1542)
OKLCHoklch(32.21% 0.159 283.7)
XYZxyz(5.3751, 2.8136, 20.3344)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30187F #677F18
analogous
#18337F #30187F #64187F
triadic
#30187F #7F3018 #187F30
tetradic
#30187F #7F1833 #677F18 #187F64
square
#30187F #7F1833 #677F18 #187F64
split-complementary
#30187F #7F6418 #337F18
monochromatic
#0A051A #1D0E4C #30187F #4322B2 #5E38D9

Accessibility & contrast

On white

13.44
#30187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#30187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30187F
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30187F#FFFFFF#000000##FFFFFF
##30187F1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30187f;
/* rgb */ color: rgb(48, 24, 127);
/* oklch */ color: oklch(32.2% 0.159 283.7);
Tailwind
colors: {
  custom: {
    50: '#7359a5',
    500: '#30187f',
    950: '#000000',
  },
}
SCSS
$custom: #30187f;
$custom-light: #7359a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30187f",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 253.981,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32207,
    "c": 0.1587,
    "h": 283.7
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#30187F
secondary
#98B33F
accent
#EB3DC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30187F

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

Preview Lab → · Contrast checker → · Palette generator →

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