#30137F#30137F

#30137F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.163 H 284.4°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#30137F
RGBrgb(48, 19, 127)
HSLhsl(256, 74%, 29%)
HSVhsv(256, 85%, 50%)
CMYKcmyk(62.2%, 85%, 0%, 50.2%)
CIE-LABlab(18.48, 42.18, -54.81)
CIE-LCHlch(18.48, 69.16, 307.58°)
OKLaboklab(31.65% 0.0405 -0.158)
OKLCHoklch(31.65% 0.163 284.4)
XYZxyz(5.2814, 2.6261, 20.3031)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30137F #627F13
analogous
#132C7F #30137F #66137F
triadic
#30137F #7F3013 #137F30
tetradic
#30137F #7F132C #627F13 #137F66
square
#30137F #7F132C #627F13 #137F66
split-complementary
#30137F #7F6613 #2C7F13
monochromatic
#0A041B #1C0B4A #30137F #441BB4 #5D2DE0

Accessibility & contrast

On white

13.77
#30137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#30137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30137F
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30137F#FFFFFF#000000##FFFFFF
##30137F1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30137f;
/* rgb */ color: rgb(48, 19, 127);
/* oklch */ color: oklch(31.7% 0.163 284.4);
Tailwind
colors: {
  custom: {
    50: '#7456a5',
    500: '#30137f',
    950: '#000000',
  },
}
SCSS
$custom: #30137f;
$custom-light: #7456a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30137f",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 256.111,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31652,
    "c": 0.16312,
    "h": 284.4
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#30137F
secondary
#93B439
accent
#F137BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30137F

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

Preview Lab → · Contrast checker → · Palette generator →

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