#301670#301670

#301670 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.142 H 287.9°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#301670
RGBrgb(48, 22, 112)
HSLhsl(257, 67%, 26%)
HSVhsv(257, 80%, 44%)
CMYKcmyk(57.1%, 80.4%, 0%, 56.1%)
CIE-LABlab(17.33, 36.28, -47.08)
CIE-LCHlch(17.33, 59.43, 307.62°)
OKLaboklab(30.36% 0.0437 -0.1354)
OKLCHoklch(30.36% 0.142 287.9)
XYZxyz(4.4296, 2.3718, 15.5505)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301670 #567016
analogous
#162970 #301670 #5D1670
triadic
#301670 #703016 #167030
tetradic
#301670 #701629 #567016 #16705D
square
#301670 #701629 #567016 #16705D
split-complementary
#301670 #705D16 #297016
monochromatic
#0B051A #1A0C3D #301670 #4620A3 #5C2BD5

Accessibility & contrast

On white

14.24
#301670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301670
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301670#FFFFFF#000000##FFFFFF
##3016701.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301670;
/* rgb */ color: rgb(48, 22, 112);
/* oklch */ color: oklch(30.4% 0.142 287.9);
Tailwind
colors: {
  custom: {
    50: '#71579a',
    500: '#301670',
    950: '#000000',
  },
}
SCSS
$custom: #301670;
$custom-light: #71579a;
$custom-dark: #000000;
JSON
{
  "hex": "#301670",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 257.333,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30364,
    "c": 0.14231,
    "h": 287.9
  },
  "luminance": 0.02372
}

Semantic roles & 50–950 ramp

primary
#301670
secondary
#87A63C
accent
#EA3EB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301670

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

Preview Lab → · Contrast checker → · Palette generator →

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