#30135F#30135F

#30135F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.125 H 294.3°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#30135F
RGBrgb(48, 19, 95)
HSLhsl(263, 67%, 22%)
HSVhsv(263, 80%, 37%)
CMYKcmyk(49.5%, 80%, 0%, 62.7%)
CIE-LABlab(15.06, 32.72, -39.62)
CIE-LCHlch(15.06, 51.38, 309.55°)
OKLaboklab(28.25% 0.0514 -0.1136)
OKLCHoklch(28.25% 0.125 294.3)
XYZxyz(3.5168, 1.9202, 11.0096)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30135F #425F13
analogous
#131C5F #30135F #56135F
triadic
#30135F #5F3013 #135F30
tetradic
#30135F #5F131C #425F13 #135F56
square
#30135F #5F131C #425F13 #135F56
split-complementary
#30135F #5F5613 #1C5F13
monochromatic
#0D051A #16092C #30135F #4A1D92 #6427C5

Accessibility & contrast

On white

15.17
#30135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#30135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30135F
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30135F#FFFFFF#000000##FFFFFF
##30135F1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#222738
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #30135f;
/* rgb */ color: rgb(48, 19, 95);
/* oklch */ color: oklch(28.2% 0.125 294.3);
Tailwind
colors: {
  custom: {
    50: '#6e548d',
    500: '#30135f',
    950: '#000000',
  },
}
SCSS
$custom: #30135f;
$custom-light: #6e548d;
$custom-dark: #000000;
JSON
{
  "hex": "#30135f",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 262.895,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2825,
    "c": 0.12464,
    "h": 294.3
  },
  "luminance": 0.0192
}

Semantic roles & 50–950 ramp

primary
#30135F
secondary
#729737
accent
#EA3EA8
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #30135F

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

Preview Lab → · Contrast checker → · Palette generator →

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