#301157#301157

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

Color values

HEX#301157
RGBrgb(48, 17, 87)
HSLhsl(267, 67%, 20%)
HSVhsv(267, 80%, 34%)
CMYKcmyk(44.8%, 80.5%, 0%, 65.9%)
CIE-LABlab(13.93, 31.42, -36.10)
CIE-LCHlch(13.93, 47.86, 311.04°)
OKLaboklab(27.21% 0.0555 -0.1032)
OKLCHoklch(27.21% 0.117 298.3)
XYZxyz(3.1392, 1.7173, 9.1811)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301157 #385711
analogous
#111557 #301157 #531157
triadic
#301157 #573011 #115730
tetradic
#301157 #571115 #385711 #115753
square
#301157 #571115 #385711 #115753
split-complementary
#301157 #575311 #155711
monochromatic
#0E051A #140724 #301157 #4C1B8A #6825BD

Accessibility & contrast

On white

15.63
#301157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301157
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301157#FFFFFF#000000##FFFFFF
##3011571.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#262333
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301157;
/* rgb */ color: rgb(48, 17, 87);
/* oklch */ color: oklch(27.2% 0.117 298.3);
Tailwind
colors: {
  custom: {
    50: '#6d5287',
    500: '#301157',
    950: '#000000',
  },
}
SCSS
$custom: #301157;
$custom-light: #6d5287;
$custom-dark: #000000;
JSON
{
  "hex": "#301157",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 266.571,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27213,
    "c": 0.11722,
    "h": 298.3
  },
  "luminance": 0.01717
}

Semantic roles & 50–950 ramp

primary
#301157
secondary
#679034
accent
#EA3E9E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301157

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

Preview Lab → · Contrast checker → · Palette generator →

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