#301370#301370

#301370 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.145 H 288.4°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#301370
RGBrgb(48, 19, 112)
HSLhsl(259, 71%, 26%)
HSVhsv(259, 83%, 44%)
CMYKcmyk(57.1%, 83%, 0%, 56.1%)
CIE-LABlab(16.81, 37.76, -47.92)
CIE-LCHlch(16.81, 61.01, 308.23°)
OKLaboklab(30.01% 0.0459 -0.1379)
OKLCHoklch(30.01% 0.145 288.4)
XYZxyz(4.3756, 2.2638, 15.5325)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301370 #537013
analogous
#132470 #301370 #5E1370
triadic
#301370 #703013 #137030
tetradic
#301370 #701324 #537013 #13705E
square
#301370 #701324 #537013 #13705E
split-complementary
#301370 #705E13 #247013
monochromatic
#0B041A #1A0A3C #301370 #461CA4 #5D25D9

Accessibility & contrast

On white

14.45
#301370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#301370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301370
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301370#FFFFFF#000000##FFFFFF
##3013701.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#152E42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301370;
/* rgb */ color: rgb(48, 19, 112);
/* oklch */ color: oklch(30.0% 0.145 288.4);
Tailwind
colors: {
  custom: {
    50: '#71559a',
    500: '#301370',
    950: '#000000',
  },
}
SCSS
$custom: #301370;
$custom-light: #71559a;
$custom-dark: #000000;
JSON
{
  "hex": "#301370",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 258.71,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30005,
    "c": 0.14535,
    "h": 288.4
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#301370
secondary
#84A738
accent
#EE3AB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301370

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

Preview Lab → · Contrast checker → · Palette generator →

#301370 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva