#30145B#30145B

#30145B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.118 H 295.7°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#30145B
RGBrgb(48, 20, 91)
HSLhsl(264, 64%, 22%)
HSVhsv(264, 78%, 36%)
CMYKcmyk(47.3%, 78%, 0%, 64.3%)
CIE-LABlab(14.87, 31.01, -37.27)
CIE-LCHlch(14.87, 48.48, 309.76°)
OKLaboklab(27.99% 0.0514 -0.1067)
OKLCHoklch(27.99% 0.118 295.7)
XYZxyz(3.3569, 1.8839, 10.0823)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30145B #3F5B14
analogous
#141C5B #30145B #54145B
triadic
#30145B #5B3014 #145B30
tetradic
#30145B #5B141C #3F5B14 #145B54
square
#30145B #5B141C #3F5B14 #145B54
split-complementary
#30145B #5B5414 #1C5B14
monochromatic
#0D0619 #160929 #30145B #4A1F8D #652ABF

Accessibility & contrast

On white

15.25
#30145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#30145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30145B
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30145B#FFFFFF#000000##FFFFFF
##30145B1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#242636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30145b;
/* rgb */ color: rgb(48, 20, 91);
/* oklch */ color: oklch(28.0% 0.118 295.7);
Tailwind
colors: {
  custom: {
    50: '#6d548a',
    500: '#30145b',
    950: '#000000',
  },
}
SCSS
$custom: #30145b;
$custom-light: #6d548a;
$custom-dark: #000000;
JSON
{
  "hex": "#30145b",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 263.662,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27992,
    "c": 0.11841,
    "h": 295.7
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#30145B
secondary
#6F9338
accent
#E741A5
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30145B

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

Preview Lab → · Contrast checker → · Palette generator →

#30145B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva