#30135A#30135A

#30135A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.118 H 296.4°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#30135A
RGBrgb(48, 19, 90)
HSLhsl(265, 65%, 21%)
HSVhsv(265, 79%, 35%)
CMYKcmyk(46.7%, 78.9%, 0%, 64.7%)
CIE-LABlab(14.58, 31.25, -37.06)
CIE-LCHlch(14.58, 48.48, 310.14°)
OKLaboklab(27.76% 0.0527 -0.1061)
OKLCHoklch(27.76% 0.118 296.4)
XYZxyz(3.2968, 1.8322, 9.8508)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30135A #3D5A13
analogous
#131A5A #30135A #54135A
triadic
#30135A #5A3013 #135A30
tetradic
#30135A #5A131A #3D5A13 #135A54
square
#30135A #5A131A #3D5A13 #135A54
split-complementary
#30135A #5A5413 #1A5A13
monochromatic
#0D0519 #150827 #30135A #4B1E8D #6628BF

Accessibility & contrast

On white

15.37
#30135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#30135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30135A
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30135A#FFFFFF#000000##FFFFFF
##30135A1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#252535
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30135a;
/* rgb */ color: rgb(48, 19, 90);
/* oklch */ color: oklch(27.8% 0.118 296.4);
Tailwind
colors: {
  custom: {
    50: '#6d5489',
    500: '#30135a',
    950: '#000000',
  },
}
SCSS
$custom: #30135a;
$custom-light: #6d5489;
$custom-dark: #000000;
JSON
{
  "hex": "#30135a",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 264.507,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27761,
    "c": 0.11843,
    "h": 296.4
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#30135A
secondary
#6D9237
accent
#E840A3
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30135A

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

Preview Lab → · Contrast checker → · Palette generator →

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