#30157E#30157E

#30157E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.160 H 284.4°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#30157E
RGBrgb(48, 21, 126)
HSLhsl(255, 71%, 29%)
HSVhsv(255, 83%, 49%)
CMYKcmyk(61.9%, 83.3%, 0%, 50.6%)
CIE-LABlab(18.67, 40.99, -53.86)
CIE-LCHlch(18.67, 67.68, 307.27°)
OKLaboklab(31.75% 0.0397 -0.1552)
OKLCHoklch(31.75% 0.16 284.4)
XYZxyz(5.2518, 2.6707, 19.9734)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30157E #637E15
analogous
#152E7E #30157E #65157E
triadic
#30157E #7E3015 #157E30
tetradic
#30157E #7E152E #637E15 #157E65
square
#30157E #7E152E #637E15 #157E65
split-complementary
#30157E #7E6515 #2E7E15
monochromatic
#0A041A #1C0C4A #30157E #441EB2 #5D31DD

Accessibility & contrast

On white

13.69
#30157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#30157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30157E
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30157E#FFFFFF#000000##FFFFFF
##30157E1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30157e;
/* rgb */ color: rgb(48, 21, 126);
/* oklch */ color: oklch(31.8% 0.160 284.4);
Tailwind
colors: {
  custom: {
    50: '#7357a4',
    500: '#30157e',
    950: '#000000',
  },
}
SCSS
$custom: #30157e;
$custom-light: #7357a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30157e",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 255.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31753,
    "c": 0.16025,
    "h": 284.4
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#30157E
secondary
#94B33C
accent
#EE3AC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30157E

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

Preview Lab → · Contrast checker → · Palette generator →

#30157E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva