#301268#301268

#301268 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.137 H 291.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#301268
RGBrgb(48, 18, 104)
HSLhsl(261, 70%, 24%)
HSVhsv(261, 83%, 41%)
CMYKcmyk(53.8%, 82.7%, 0%, 59.2%)
CIE-LABlab(15.80, 35.87, -44.37)
CIE-LCHlch(15.80, 57.06, 308.96°)
OKLaboklab(29.04% 0.0494 -0.1275)
OKLCHoklch(29.04% 0.137 291.2)
XYZxyz(3.9332, 2.0603, 13.2845)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301268 #4A6812
analogous
#121F68 #301268 #5B1268
triadic
#301268 #683012 #126830
tetradic
#301268 #68121F #4A6812 #12685B
square
#301268 #68121F #4A6812 #12685B
split-complementary
#301268 #685B12 #1F6812
monochromatic
#0C051A #180934 #301268 #481B9C #6024D0

Accessibility & contrast

On white

14.87
#301268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301268
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301268#FFFFFF#000000##FFFFFF
##3012681.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#1C2B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301268;
/* rgb */ color: rgb(48, 18, 104);
/* oklch */ color: oklch(29.0% 0.137 291.2);
Tailwind
colors: {
  custom: {
    50: '#705494',
    500: '#301268',
    950: '#000000',
  },
}
SCSS
$custom: #301268;
$custom-light: #705494;
$custom-dark: #000000;
JSON
{
  "hex": "#301268",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 260.93,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29044,
    "c": 0.13672,
    "h": 291.2
  },
  "luminance": 0.0206
}

Semantic roles & 50–950 ramp

primary
#301268
secondary
#7BA036
accent
#ED3BAF
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301268

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

Preview Lab → · Contrast checker → · Palette generator →

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