#301679#301679

#301679 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.153 H 285.4°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#301679
RGBrgb(48, 22, 121)
HSLhsl(256, 69%, 28%)
HSVhsv(256, 82%, 47%)
CMYKcmyk(60.3%, 81.8%, 0%, 52.5%)
CIE-LABlab(18.29, 39.01, -51.30)
CIE-LCHlch(18.29, 64.45, 307.25°)
OKLaboklab(31.32% 0.0408 -0.1478)
OKLCHoklch(31.32% 0.153 285.4)
XYZxyz(4.9560, 2.5824, 18.3227)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301679 #5F7916
analogous
#162D79 #301679 #621679
triadic
#301679 #793016 #167930
tetradic
#301679 #79162D #5F7916 #167962
square
#301679 #79162D #5F7916 #167962
split-complementary
#301679 #796216 #2D7916
monochromatic
#0A051A #1B0D45 #301679 #451FAD #5D30D9

Accessibility & contrast

On white

13.85
#301679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301679
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301679#FFFFFF#000000##FFFFFF
##3016791.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#083347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301679;
/* rgb */ color: rgb(48, 22, 121);
/* oklch */ color: oklch(31.3% 0.153 285.4);
Tailwind
colors: {
  custom: {
    50: '#7257a1',
    500: '#301679',
    950: '#000000',
  },
}
SCSS
$custom: #301679;
$custom-light: #7257a1;
$custom-dark: #000000;
JSON
{
  "hex": "#301679",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 255.758,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3132,
    "c": 0.15333,
    "h": 285.4
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

primary
#301679
secondary
#90AE3D
accent
#EC3CBE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #301679

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

Preview Lab → · Contrast checker → · Palette generator →

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