#30125F#30125F

#30125F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.126 H 294.6°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#30125F
RGBrgb(48, 18, 95)
HSLhsl(263, 68%, 22%)
HSVhsv(263, 81%, 37%)
CMYKcmyk(49.5%, 81.1%, 0%, 62.7%)
CIE-LABlab(14.88, 33.23, -39.91)
CIE-LCHlch(14.88, 51.94, 309.78°)
OKLaboklab(28.12% 0.0523 -0.1144)
OKLCHoklch(28.12% 0.126 294.6)
XYZxyz(3.5002, 1.8871, 11.0041)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30125F #415F12
analogous
#121A5F #30125F #57125F
triadic
#30125F #5F3012 #125F30
tetradic
#30125F #5F121A #415F12 #125F57
square
#30125F #5F121A #415F12 #125F57
split-complementary
#30125F #5F5712 #1A5F12
monochromatic
#0D051A #16082C #30125F #4A1C92 #6425C6

Accessibility & contrast

On white

15.25
#30125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#30125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30125F
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30125F#FFFFFF#000000##FFFFFF
##30125F1.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)
#002661
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#222738
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30125f;
/* rgb */ color: rgb(48, 18, 95);
/* oklch */ color: oklch(28.1% 0.126 294.6);
Tailwind
colors: {
  custom: {
    50: '#6e538d',
    500: '#30125f',
    950: '#000000',
  },
}
SCSS
$custom: #30125f;
$custom-light: #6e538d;
$custom-dark: #000000;
JSON
{
  "hex": "#30125f",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 263.377,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28124,
    "c": 0.1258,
    "h": 294.6
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#30125F
secondary
#719736
accent
#EB3DA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #30125F

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

Preview Lab → · Contrast checker → · Palette generator →

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