#30124B#30124B

#30124B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.101 H 304.4°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#30124B
RGBrgb(48, 18, 75)
HSLhsl(272, 61%, 18%)
HSVhsv(272, 76%, 29%)
CMYKcmyk(36%, 76%, 0%, 70.6%)
CIE-LABlab(13.04, 27.48, -29.34)
CIE-LCHlch(13.04, 40.20, 313.12°)
OKLaboklab(26.25% 0.057 -0.0834)
OKLCHoklch(26.25% 0.101 304.4)
XYZxyz(2.7049, 1.5690, 6.8156)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30124B #2D4B12
analogous
#13124B #30124B #4B1249
triadic
#30124B #4B3012 #124B30
tetradic
#30124B #4B1312 #2D4B12 #12494B
square
#30124B #4B1312 #2D4B12 #12494B
split-complementary
#30124B #494B12 #124B13
monochromatic
#100619 #10061A #30124B #501E7C #6F2AAE

Accessibility & contrast

On white

15.98
#30124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#30124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30124B
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30124B#FFFFFF#000000##FFFFFF
##30124B1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#00224A
Tritanopia (blue-blind)
#2B1F2C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #30124b;
/* rgb */ color: rgb(48, 18, 75);
/* oklch */ color: oklch(26.2% 0.101 304.4);
Tailwind
colors: {
  custom: {
    50: '#6b527e',
    500: '#30124b',
    950: '#000000',
  },
}
SCSS
$custom: #30124b;
$custom-light: #6b527e;
$custom-dark: #000000;
JSON
{
  "hex": "#30124b",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 271.579,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26246,
    "c": 0.10099,
    "h": 304.4
  },
  "luminance": 0.01569
}

Semantic roles & 50–950 ramp

primary
#30124B
secondary
#5A8435
accent
#E44390
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #30124B

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

Preview Lab → · Contrast checker → · Palette generator →

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