#301263#301263

#301263 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.131 H 293.0°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#301263
RGBrgb(48, 18, 99)
HSLhsl(262, 69%, 23%)
HSVhsv(262, 82%, 39%)
CMYKcmyk(51.5%, 81.8%, 0%, 61.2%)
CIE-LABlab(15.29, 34.40, -41.91)
CIE-LCHlch(15.29, 54.23, 309.38°)
OKLaboklab(28.53% 0.0511 -0.1203)
OKLCHoklch(28.53% 0.131 293)
XYZxyz(3.6867, 1.9617, 11.9864)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301263 #456312
analogous
#121C63 #301263 #581263
triadic
#301263 #633012 #126330
tetradic
#301263 #63121C #456312 #126358
square
#301263 #63121C #456312 #126358
split-complementary
#301263 #635812 #1C6312
monochromatic
#0D051A #17092F #301263 #491B97 #6225CB

Accessibility & contrast

On white

15.08
#301263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#301263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301263
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301263#FFFFFF#000000##FFFFFF
##3012631.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002765
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#20293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301263;
/* rgb */ color: rgb(48, 18, 99);
/* oklch */ color: oklch(28.5% 0.131 293.0);
Tailwind
colors: {
  custom: {
    50: '#6f5490',
    500: '#301263',
    950: '#000000',
  },
}
SCSS
$custom: #301263;
$custom-light: #6f5490;
$custom-dark: #000000;
JSON
{
  "hex": "#301263",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 262.222,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28528,
    "c": 0.13068,
    "h": 293
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#301263
secondary
#769B36
accent
#EC3CAB
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #301263

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

Preview Lab → · Contrast checker → · Palette generator →

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