#301273#301273

#301273 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.150 H 287.7°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#301273
RGBrgb(48, 18, 115)
HSLhsl(259, 73%, 26%)
HSVhsv(259, 84%, 45%)
CMYKcmyk(58.3%, 84.3%, 0%, 54.9%)
CIE-LABlab(16.98, 39.10, -49.59)
CIE-LCHlch(16.98, 63.15, 308.25°)
OKLaboklab(30.22% 0.0456 -0.1428)
OKLCHoklch(30.22% 0.15 287.7)
XYZxyz(4.5288, 2.2986, 16.4214)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301273 #557312
analogous
#122473 #301273 #601273
triadic
#301273 #733012 #127330
tetradic
#301273 #731224 #557312 #127360
square
#301273 #731224 #557312 #127360
split-complementary
#301273 #736012 #247312
monochromatic
#0B041A #1A0A3E #301273 #461AA8 #5C23DD

Accessibility & contrast

On white

14.39
#301273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#301273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301273
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301273#FFFFFF#000000##FFFFFF
##3012731.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#122F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301273;
/* rgb */ color: rgb(48, 18, 115);
/* oklch */ color: oklch(30.2% 0.150 287.7);
Tailwind
colors: {
  custom: {
    50: '#72559c',
    500: '#301273',
    950: '#000000',
  },
}
SCSS
$custom: #301273;
$custom-light: #72559c;
$custom-dark: #000000;
JSON
{
  "hex": "#301273",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 258.557,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30219,
    "c": 0.14985,
    "h": 287.7
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#301273
secondary
#86AA37
accent
#F038B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301273

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

Preview Lab → · Contrast checker → · Palette generator →

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