#301058#301058

#301058 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.120 H 298.0°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#301058
RGBrgb(48, 16, 88)
HSLhsl(267, 69%, 20%)
HSVhsv(267, 82%, 35%)
CMYKcmyk(45.5%, 81.8%, 0%, 65.5%)
CIE-LABlab(13.85, 32.21, -36.91)
CIE-LCHlch(13.85, 48.99, 311.11°)
OKLaboklab(27.19% 0.0563 -0.1056)
OKLCHoklch(27.19% 0.12 298)
XYZxyz(3.1652, 1.7035, 9.3927)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301058 #385810
analogous
#101458 #301058 #541058
triadic
#301058 #583010 #105830
tetradic
#301058 #581014 #385810 #105854
square
#301058 #581014 #385810 #105854
split-complementary
#301058 #585410 #145810
monochromatic
#0E051A #140724 #301058 #4C198C #6823C0

Accessibility & contrast

On white

15.66
#301058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#301058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301058
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301058#FFFFFF#000000##FFFFFF
##3010581.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#262333
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301058;
/* rgb */ color: rgb(48, 16, 88);
/* oklch */ color: oklch(27.2% 0.120 298.0);
Tailwind
colors: {
  custom: {
    50: '#6d5288',
    500: '#301058',
    950: '#000000',
  },
}
SCSS
$custom: #301058;
$custom-light: #6d5288;
$custom-dark: #000000;
JSON
{
  "hex": "#301058",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 266.667,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27186,
    "c": 0.11965,
    "h": 298
  },
  "luminance": 0.01704
}

Semantic roles & 50–950 ramp

primary
#301058
secondary
#679132
accent
#EC3C9E
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301058

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

Preview Lab → · Contrast checker → · Palette generator →

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