#301260#301260

#301260 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.127 H 294.2°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#301260
RGBrgb(48, 18, 96)
HSLhsl(263, 68%, 22%)
HSVhsv(263, 81%, 38%)
CMYKcmyk(50%, 81.3%, 0%, 62.4%)
CIE-LABlab(14.98, 33.53, -40.42)
CIE-LCHlch(14.98, 52.51, 309.68°)
OKLaboklab(28.22% 0.052 -0.1159)
OKLCHoklch(28.22% 0.127 294.2)
XYZxyz(3.5460, 1.9054, 11.2450)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301260 #426012
analogous
#121B60 #301260 #571260
triadic
#301260 #603012 #126030
tetradic
#301260 #60121B #426012 #126057
square
#301260 #60121B #426012 #126057
split-complementary
#301260 #605712 #1B6012
monochromatic
#0D051A #16082C #301260 #4A1C94 #6425C7

Accessibility & contrast

On white

15.20
#301260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301260
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301260#FFFFFF#000000##FFFFFF
##3012601.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#222738
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301260;
/* rgb */ color: rgb(48, 18, 96);
/* oklch */ color: oklch(28.2% 0.127 294.2);
Tailwind
colors: {
  custom: {
    50: '#6e548e',
    500: '#301260',
    950: '#000000',
  },
}
SCSS
$custom: #301260;
$custom-light: #6e548e;
$custom-dark: #000000;
JSON
{
  "hex": "#301260",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 263.077,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28224,
    "c": 0.12703,
    "h": 294.2
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#301260
secondary
#729836
accent
#EB3DA8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301260

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

Preview Lab → · Contrast checker → · Palette generator →

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