#30155D#30155D

#30155D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.120 H 294.6°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#30155D
RGBrgb(48, 21, 93)
HSLhsl(263, 63%, 22%)
HSVhsv(263, 77%, 36%)
CMYKcmyk(48.4%, 77.4%, 0%, 63.5%)
CIE-LABlab(15.25, 31.05, -37.98)
CIE-LCHlch(15.25, 49.06, 309.27°)
OKLaboklab(28.32% 0.0499 -0.1088)
OKLCHoklch(28.32% 0.12 294.6)
XYZxyz(3.4623, 1.9549, 10.5487)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30155D #425D15
analogous
#151E5D #30155D #54155D
triadic
#30155D #5D3015 #155D30
tetradic
#30155D #5D151E #425D15 #155D54
square
#30155D #5D151E #425D15 #155D54
split-complementary
#30155D #5D5415 #1E5D15
monochromatic
#0D0619 #160A2B #30155D #4A208F #642CC1

Accessibility & contrast

On white

15.10
#30155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30155D
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30155D#FFFFFF#000000##FFFFFF
##30155D1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#232837
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #30155d;
/* rgb */ color: rgb(48, 21, 93);
/* oklch */ color: oklch(28.3% 0.120 294.6);
Tailwind
colors: {
  custom: {
    50: '#6d558c',
    500: '#30155d',
    950: '#000000',
  },
}
SCSS
$custom: #30155d;
$custom-light: #6d558c;
$custom-dark: #000000;
JSON
{
  "hex": "#30155d",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 262.5,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28322,
    "c": 0.11966,
    "h": 294.6
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30155D

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

Preview Lab → · Contrast checker → · Palette generator →

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