#30186F#30186F

#30186F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.139 H 287.7°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#30186F
RGBrgb(48, 24, 111)
HSLhsl(257, 64%, 26%)
HSVhsv(257, 78%, 44%)
CMYKcmyk(56.8%, 78.4%, 0%, 56.5%)
CIE-LABlab(17.59, 34.92, -45.99)
CIE-LCHlch(17.59, 57.74, 307.21°)
OKLaboklab(30.52% 0.0423 -0.1323)
OKLCHoklch(30.52% 0.139 287.7)
XYZxyz(4.4140, 2.4291, 15.2721)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30186F #576F18
analogous
#182C6F #30186F #5C186F
triadic
#30186F #6F3018 #186F30
tetradic
#30186F #6F182C #576F18 #186F5C
square
#30186F #6F182C #576F18 #186F5C
split-complementary
#30186F #6F5C18 #2C6F18
monochromatic
#0B0519 #1A0D3D #30186F #4623A1 #5C2FD2

Accessibility & contrast

On white

14.13
#30186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#30186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30186F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30186F#FFFFFF#000000##FFFFFF
##30186F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#163042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #30186f;
/* rgb */ color: rgb(48, 24, 111);
/* oklch */ color: oklch(30.5% 0.139 287.7);
Tailwind
colors: {
  custom: {
    50: '#705899',
    500: '#30186f',
    950: '#000000',
  },
}
SCSS
$custom: #30186f;
$custom-light: #705899;
$custom-dark: #000000;
JSON
{
  "hex": "#30186f",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 256.552,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30519,
    "c": 0.13889,
    "h": 287.7
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#30186F
secondary
#88A53E
accent
#E740B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30186F

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

Preview Lab → · Contrast checker → · Palette generator →

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