#301274#301274

#301274 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.151 H 287.4°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#301274
RGBrgb(48, 18, 116)
HSLhsl(258, 73%, 26%)
HSVhsv(258, 84%, 45%)
CMYKcmyk(58.6%, 84.5%, 0%, 54.5%)
CIE-LABlab(17.09, 39.40, -50.06)
CIE-LCHlch(17.09, 63.70, 308.20°)
OKLaboklab(30.33% 0.0452 -0.1441)
OKLCHoklch(30.33% 0.151 287.4)
XYZxyz(4.5867, 2.3217, 16.7261)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301274 #567412
analogous
#122574 #301274 #611274
triadic
#301274 #743012 #127430
tetradic
#301274 #741225 #567412 #127461
square
#301274 #741225 #567412 #127461
split-complementary
#301274 #746112 #257412
monochromatic
#0B041A #1A0A3F #301274 #461AA9 #5C23DD

Accessibility & contrast

On white

14.34
#301274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301274
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301274#FFFFFF#000000##FFFFFF
##3012741.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#113044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301274;
/* rgb */ color: rgb(48, 18, 116);
/* oklch */ color: oklch(30.3% 0.151 287.4);
Tailwind
colors: {
  custom: {
    50: '#72559d',
    500: '#301274',
    950: '#000000',
  },
}
SCSS
$custom: #301274;
$custom-light: #72559d;
$custom-dark: #000000;
JSON
{
  "hex": "#301274",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 258.367,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30328,
    "c": 0.15103,
    "h": 287.4
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#301274
secondary
#87AB37
accent
#F038B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301274

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

Preview Lab → · Contrast checker → · Palette generator →

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