#30125A#30125A

#30125A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.120 H 296.7°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#30125A
RGBrgb(48, 18, 90)
HSLhsl(265, 67%, 21%)
HSVhsv(265, 80%, 35%)
CMYKcmyk(46.7%, 80%, 0%, 64.7%)
CIE-LABlab(14.40, 31.77, -37.36)
CIE-LCHlch(14.40, 49.05, 310.38°)
OKLaboklab(27.63% 0.0537 -0.1069)
OKLCHoklch(27.63% 0.12 296.7)
XYZxyz(3.2802, 1.7991, 9.8453)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30125A #3C5A12
analogous
#12185A #30125A #54125A
triadic
#30125A #5A3012 #125A30
tetradic
#30125A #5A1218 #3C5A12 #125A54
square
#30125A #5A1218 #3C5A12 #125A54
split-complementary
#30125A #5A5412 #185A12
monochromatic
#0E051A #150827 #30125A #4B1C8D #6626C0

Accessibility & contrast

On white

15.44
#30125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#30125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30125A
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30125A#FFFFFF#000000##FFFFFF
##30125A1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#252535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30125a;
/* rgb */ color: rgb(48, 18, 90);
/* oklch */ color: oklch(27.6% 0.120 296.7);
Tailwind
colors: {
  custom: {
    50: '#6d5389',
    500: '#30125a',
    950: '#000000',
  },
}
SCSS
$custom: #30125a;
$custom-light: #6d5389;
$custom-dark: #000000;
JSON
{
  "hex": "#30125a",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 265,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27631,
    "c": 0.11967,
    "h": 296.7
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#30125A
secondary
#6C9335
accent
#EA3EA2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30125A

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

Preview Lab → · Contrast checker → · Palette generator →

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