#301770#301770

#301770 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.141 H 287.7°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#301770
RGBrgb(48, 23, 112)
HSLhsl(257, 66%, 26%)
HSVhsv(257, 79%, 44%)
CMYKcmyk(57.1%, 79.5%, 0%, 56.1%)
CIE-LABlab(17.51, 35.76, -46.78)
CIE-LCHlch(17.51, 58.88, 307.39°)
OKLaboklab(30.49% 0.0429 -0.1346)
OKLCHoklch(30.49% 0.141 287.7)
XYZxyz(4.4491, 2.4108, 15.5570)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301770 #577017
analogous
#172B70 #301770 #5D1770
triadic
#301770 #703017 #177030
tetradic
#301770 #70172B #577017 #17705D
square
#301770 #70172B #577017 #17705D
split-complementary
#301770 #705D17 #2B7017
monochromatic
#0B0519 #1A0D3D #301770 #4621A3 #5C2DD4

Accessibility & contrast

On white

14.17
#301770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301770
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301770#FFFFFF#000000##FFFFFF
##3017701.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#153043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301770;
/* rgb */ color: rgb(48, 23, 112);
/* oklch */ color: oklch(30.5% 0.141 287.7);
Tailwind
colors: {
  custom: {
    50: '#71579a',
    500: '#301770',
    950: '#000000',
  },
}
SCSS
$custom: #301770;
$custom-light: #71579a;
$custom-dark: #000000;
JSON
{
  "hex": "#301770",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 256.854,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30491,
    "c": 0.14125,
    "h": 287.7
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#301770
secondary
#88A63D
accent
#E93FB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301770

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

Preview Lab → · Contrast checker → · Palette generator →

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