#30125D#30125D

#30125D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.123 H 295.4°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#30125D
RGBrgb(48, 18, 93)
HSLhsl(264, 68%, 22%)
HSVhsv(264, 81%, 36%)
CMYKcmyk(48.4%, 80.6%, 0%, 63.5%)
CIE-LABlab(14.69, 32.65, -38.90)
CIE-LCHlch(14.69, 50.78, 310.01°)
OKLaboklab(27.93% 0.0529 -0.1114)
OKLCHoklch(27.93% 0.123 295.4)
XYZxyz(3.4105, 1.8512, 10.5314)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30125D #3F5D12
analogous
#121A5D #30125D #56125D
triadic
#30125D #5D3012 #125D30
tetradic
#30125D #5D121A #3F5D12 #125D56
square
#30125D #5D121A #3F5D12 #125D56
split-complementary
#30125D #5D5612 #1A5D12
monochromatic
#0D051A #16082A #30125D #4A1C90 #6526C4

Accessibility & contrast

On white

15.33
#30125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#30125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30125D
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30125D#FFFFFF#000000##FFFFFF
##30125D1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#232637
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30125d;
/* rgb */ color: rgb(48, 18, 93);
/* oklch */ color: oklch(27.9% 0.123 295.4);
Tailwind
colors: {
  custom: {
    50: '#6e538c',
    500: '#30125d',
    950: '#000000',
  },
}
SCSS
$custom: #30125d;
$custom-light: #6e538c;
$custom-dark: #000000;
JSON
{
  "hex": "#30125d",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 264,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27925,
    "c": 0.12336,
    "h": 295.4
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#30125D
secondary
#6F9535
accent
#EA3DA5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #30125D

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

Preview Lab → · Contrast checker → · Palette generator →

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