#301272#301272

#301272 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.149 H 288.0°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#301272
RGBrgb(48, 18, 114)
HSLhsl(259, 73%, 26%)
HSVhsv(259, 84%, 45%)
CMYKcmyk(57.9%, 84.2%, 0%, 55.3%)
CIE-LABlab(16.87, 38.81, -49.13)
CIE-LCHlch(16.87, 62.61, 308.31°)
OKLaboklab(30.11% 0.0459 -0.1414)
OKLCHoklch(30.11% 0.149 288)
XYZxyz(4.4716, 2.2757, 16.1200)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301272 #547212
analogous
#122472 #301272 #601272
triadic
#301272 #723012 #127230
tetradic
#301272 #721224 #547212 #127260
square
#301272 #721224 #547212 #127260
split-complementary
#301272 #726012 #247212
monochromatic
#0B041A #1A0A3D #301272 #461AA7 #5D23DC

Accessibility & contrast

On white

14.43
#301272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301272
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301272#FFFFFF#000000##FFFFFF
##3012721.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#132F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301272;
/* rgb */ color: rgb(48, 18, 114);
/* oklch */ color: oklch(30.1% 0.149 288.0);
Tailwind
colors: {
  custom: {
    50: '#71559c',
    500: '#301272',
    950: '#000000',
  },
}
SCSS
$custom: #301272;
$custom-light: #71559c;
$custom-dark: #000000;
JSON
{
  "hex": "#301272",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 258.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3011,
    "c": 0.14867,
    "h": 288
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#301272
secondary
#85A937
accent
#EF38B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301272

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

Preview Lab → · Contrast checker → · Palette generator →

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