#301267#301267

#301267 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.136 H 291.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#301267
RGBrgb(48, 18, 103)
HSLhsl(261, 70%, 24%)
HSVhsv(261, 83%, 40%)
CMYKcmyk(53.4%, 82.5%, 0%, 59.6%)
CIE-LABlab(15.70, 35.58, -43.88)
CIE-LCHlch(15.70, 56.49, 309.04°)
OKLaboklab(28.94% 0.0498 -0.126)
OKLCHoklch(28.94% 0.136 291.5)
XYZxyz(3.8827, 2.0401, 13.0185)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301267 #496712
analogous
#121F67 #301267 #5A1267
triadic
#301267 #673012 #126730
tetradic
#301267 #67121F #496712 #12675A
square
#301267 #67121F #496712 #12675A
split-complementary
#301267 #675A12 #1F6712
monochromatic
#0C051A #180933 #301267 #481B9B #6124CF

Accessibility & contrast

On white

14.91
#301267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#301267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301267
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301267#FFFFFF#000000##FFFFFF
##3012671.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#1D2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301267;
/* rgb */ color: rgb(48, 18, 103);
/* oklch */ color: oklch(28.9% 0.136 291.5);
Tailwind
colors: {
  custom: {
    50: '#6f5493',
    500: '#301267',
    950: '#000000',
  },
}
SCSS
$custom: #301267;
$custom-light: #6f5493;
$custom-dark: #000000;
JSON
{
  "hex": "#301267",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 261.176,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2894,
    "c": 0.13552,
    "h": 291.5
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#301267
secondary
#7A9F36
accent
#ED3BAE
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301267

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

Preview Lab → · Contrast checker → · Palette generator →

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