#30155C#30155C

#30155C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.118 H 295.0°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#30155C
RGBrgb(48, 21, 92)
HSLhsl(263, 63%, 22%)
HSVhsv(263, 77%, 36%)
CMYKcmyk(47.8%, 77.2%, 0%, 63.9%)
CIE-LABlab(15.15, 30.75, -37.46)
CIE-LCHlch(15.15, 48.47, 309.38°)
OKLaboklab(28.23% 0.0501 -0.1073)
OKLCHoklch(28.23% 0.118 295)
XYZxyz(3.4183, 1.9373, 10.3170)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30155C #415C15
analogous
#151E5C #30155C #54155C
triadic
#30155C #5C3015 #155C30
tetradic
#30155C #5C151E #415C15 #155C54
square
#30155C #5C151E #415C15 #155C54
split-complementary
#30155C #5C5415 #1E5C15
monochromatic
#0D0619 #160A2A #30155C #4A208E #642CC0

Accessibility & contrast

On white

15.14
#30155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#30155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30155C
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30155C#FFFFFF#000000##FFFFFF
##30155C1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#242737
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #30155c;
/* rgb */ color: rgb(48, 21, 92);
/* oklch */ color: oklch(28.2% 0.118 295.0);
Tailwind
colors: {
  custom: {
    50: '#6d558b',
    500: '#30155c',
    950: '#000000',
  },
}
SCSS
$custom: #30155c;
$custom-light: #6d558b;
$custom-dark: #000000;
JSON
{
  "hex": "#30155c",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 262.817,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28226,
    "c": 0.11839,
    "h": 295
  },
  "luminance": 0.01937
}

Semantic roles & 50–950 ramp

primary
#30155C
secondary
#719339
accent
#E642A8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30155C

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

Preview Lab → · Contrast checker → · Palette generator →

#30155C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva