#301767#301767

#301767 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.130 H 290.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#301767
RGBrgb(48, 23, 103)
HSLhsl(259, 63%, 25%)
HSVhsv(259, 78%, 40%)
CMYKcmyk(53.4%, 77.7%, 0%, 59.6%)
CIE-LABlab(16.60, 32.99, -42.39)
CIE-LCHlch(16.60, 53.72, 307.89°)
OKLaboklab(29.58% 0.0454 -0.1217)
OKLCHoklch(29.58% 0.13 290.4)
XYZxyz(3.9728, 2.2203, 13.0486)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301767 #4E6717
analogous
#172667 #301767 #581767
triadic
#301767 #673017 #176730
tetradic
#301767 #671726 #4E6717 #176758
square
#301767 #671726 #4E6717 #176758
split-complementary
#301767 #675817 #266717
monochromatic
#0C0619 #190C35 #301767 #472299 #5F2DCB

Accessibility & contrast

On white

14.54
#301767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#301767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301767
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301767#FFFFFF#000000##FFFFFF
##3017671.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#1D2C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301767;
/* rgb */ color: rgb(48, 23, 103);
/* oklch */ color: oklch(29.6% 0.130 290.4);
Tailwind
colors: {
  custom: {
    50: '#6f5793',
    500: '#301767',
    950: '#000000',
  },
}
SCSS
$custom: #301767;
$custom-light: #6f5793;
$custom-dark: #000000;
JSON
{
  "hex": "#301767",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 258.75,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29576,
    "c": 0.12992,
    "h": 290.4
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#301767
secondary
#7F9D3D
accent
#E741B3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301767

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

Preview Lab → · Contrast checker → · Palette generator →

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