#30127E#30127E

#30127E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.163 H 284.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#30127E
RGBrgb(48, 18, 126)
HSLhsl(257, 75%, 28%)
HSVhsv(257, 86%, 49%)
CMYKcmyk(61.9%, 85.7%, 0%, 50.6%)
CIE-LABlab(18.22, 42.32, -54.61)
CIE-LCHlch(18.22, 69.09, 307.77°)
OKLaboklab(31.44% 0.0415 -0.1574)
OKLCHoklch(31.44% 0.163 284.8)
XYZxyz(5.2000, 2.5670, 19.9561)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30127E #607E12
analogous
#122A7E #30127E #66127E
triadic
#30127E #7E3012 #127E30
tetradic
#30127E #7E122A #607E12 #127E66
square
#30127E #7E122A #607E12 #127E66
split-complementary
#30127E #7E6612 #2A7E12
monochromatic
#0A041B #1C0A48 #30127E #441AB4 #5D2AE1

Accessibility & contrast

On white

13.88
#30127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#30127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30127E
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30127E#FFFFFF#000000##FFFFFF
##30127E1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #30127e;
/* rgb */ color: rgb(48, 18, 126);
/* oklch */ color: oklch(31.4% 0.163 284.8);
Tailwind
colors: {
  custom: {
    50: '#7456a5',
    500: '#30127e',
    950: '#000000',
  },
}
SCSS
$custom: #30127e;
$custom-light: #7456a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30127e",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 256.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31439,
    "c": 0.16276,
    "h": 284.8
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#30127E
secondary
#91B438
accent
#F236BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30127E

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

Preview Lab → · Contrast checker → · Palette generator →

#30127E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva