#301051#301051

#301051 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.111 H 301.5°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#301051
RGBrgb(48, 16, 81)
HSLhsl(270, 67%, 19%)
HSVhsv(270, 80%, 32%)
CMYKcmyk(40.7%, 80.2%, 0%, 68.2%)
CIE-LABlab(13.19, 30.24, -33.23)
CIE-LCHlch(13.19, 44.92, 312.30°)
OKLaboklab(26.52% 0.0581 -0.0948)
OKLCHoklch(26.52% 0.111 301.5)
XYZxyz(2.8891, 1.5930, 7.9383)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301051 #315110
analogous
#101151 #301051 #511051
triadic
#301051 #513010 #105130
tetradic
#301051 #511011 #315110 #105151
square
#301051 #511011 #315110 #105151
split-complementary
#301051 #515110 #115110
monochromatic
#0F051A #12061E #301051 #4E1A84 #6D24B7

Accessibility & contrast

On white

15.93
#301051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#301051 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301051
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301051#FFFFFF#000000##FFFFFF
##3010511.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#29202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301051;
/* rgb */ color: rgb(48, 16, 81);
/* oklch */ color: oklch(26.5% 0.111 301.5);
Tailwind
colors: {
  custom: {
    50: '#6c5282',
    500: '#301051',
    950: '#000000',
  },
}
SCSS
$custom: #301051;
$custom-light: #6c5282;
$custom-dark: #000000;
JSON
{
  "hex": "#301051",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 269.538,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26517,
    "c": 0.11119,
    "h": 301.5
  },
  "luminance": 0.01593
}

Semantic roles & 50–950 ramp

primary
#301051
secondary
#5F8B32
accent
#EA3E95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #301051

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

Preview Lab → · Contrast checker → · Palette generator →

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