#30137C#30137C

#30137C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.160 H 285.1°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#30137C
RGBrgb(48, 19, 124)
HSLhsl(257, 73%, 28%)
HSVhsv(257, 85%, 49%)
CMYKcmyk(61.3%, 84.7%, 0%, 51.4%)
CIE-LABlab(18.14, 41.30, -53.47)
CIE-LCHlch(18.14, 67.56, 307.68°)
OKLaboklab(31.32% 0.0416 -0.1541)
OKLCHoklch(31.32% 0.16 285.1)
XYZxyz(5.0888, 2.5490, 19.2887)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30137C #5F7C13
analogous
#132B7C #30137C #64137C
triadic
#30137C #7C3013 #137C30
tetradic
#30137C #7C132B #5F7C13 #137C64
square
#30137C #7C132B #5F7C13 #137C64
split-complementary
#30137C #7C6413 #2B7C13
monochromatic
#0A041B #1B0B47 #30137C #451BB1 #5D2BDF

Accessibility & contrast

On white

13.91
#30137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#30137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30137C
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30137C#FFFFFF#000000##FFFFFF
##30137C1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#023349
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #30137c;
/* rgb */ color: rgb(48, 19, 124);
/* oklch */ color: oklch(31.3% 0.160 285.1);
Tailwind
colors: {
  custom: {
    50: '#7356a3',
    500: '#30137c',
    950: '#000000',
  },
}
SCSS
$custom: #30137c;
$custom-light: #7356a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30137c",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 256.571,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31317,
    "c": 0.1596,
    "h": 285.1
  },
  "luminance": 0.02549
}

Semantic roles & 50–950 ramp

primary
#30137C
secondary
#90B239
accent
#F038BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30137C

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

Preview Lab → · Contrast checker → · Palette generator →

#30137C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva