#30138D#30138D

#30138D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.179 H 281.4°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#30138D
RGBrgb(48, 19, 141)
HSLhsl(254, 76%, 31%)
HSVhsv(254, 87%, 55%)
CMYKcmyk(66%, 86.5%, 0%, 44.7%)
CIE-LABlab(20.11, 46.25, -60.93)
CIE-LCHlch(20.11, 76.50, 307.20°)
OKLaboklab(33.25% 0.0353 -0.1758)
OKLCHoklch(33.25% 0.179 281.4)
XYZxyz(6.2580, 3.0167, 25.4466)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30138D #708D13
analogous
#13338D #30138D #6D138D
triadic
#30138D #8D3013 #138D30
tetradic
#30138D #8D1333 #708D13 #138D6D
square
#30138D #8D1333 #708D13 #138D6D
split-complementary
#30138D #8D6D13 #338D13
monochromatic
#0B0421 #1E0C57 #30138D #421AC3 #6036E4

Accessibility & contrast

On white

13.10
#30138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#30138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30138D
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30138D#FFFFFF#000000##FFFFFF
##30138D1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30138d;
/* rgb */ color: rgb(48, 19, 141);
/* oklch */ color: oklch(33.3% 0.179 281.4);
Tailwind
colors: {
  custom: {
    50: '#7757b0',
    500: '#30138d',
    950: '#000000',
  },
}
SCSS
$custom: #30138d;
$custom-light: #7757b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30138d",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 254.262,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3325,
    "c": 0.17933,
    "h": 281.4
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#30138D
secondary
#A1C13B
accent
#F335C6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #30138D

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

Preview Lab → · Contrast checker → · Palette generator →

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