#301156#301156

#301156 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.116 H 298.8°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#301156
RGBrgb(48, 17, 86)
HSLhsl(267, 67%, 20%)
HSVhsv(267, 80%, 34%)
CMYKcmyk(44.2%, 80.2%, 0%, 66.3%)
CIE-LABlab(13.83, 31.14, -35.58)
CIE-LCHlch(13.83, 47.28, 311.19°)
OKLaboklab(27.12% 0.0558 -0.1017)
OKLCHoklch(27.12% 0.116 298.8)
XYZxyz(3.0987, 1.7011, 8.9674)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301156 #375611
analogous
#111456 #301156 #531156
triadic
#301156 #563011 #115630
tetradic
#301156 #561114 #375611 #115653
square
#301156 #561114 #375611 #115653
split-complementary
#301156 #565311 #145611
monochromatic
#0E051A #130723 #301156 #4D1B89 #6925BC

Accessibility & contrast

On white

15.67
#301156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301156
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301156#FFFFFF#000000##FFFFFF
##3011561.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#272332
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301156;
/* rgb */ color: rgb(48, 17, 86);
/* oklch */ color: oklch(27.1% 0.116 298.8);
Tailwind
colors: {
  custom: {
    50: '#6d5286',
    500: '#301156',
    950: '#000000',
  },
}
SCSS
$custom: #301156;
$custom-light: #6d5286;
$custom-dark: #000000;
JSON
{
  "hex": "#301156",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 266.957,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27117,
    "c": 0.11601,
    "h": 298.8
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#301156
secondary
#668F34
accent
#EA3E9D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301156

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

Preview Lab → · Contrast checker → · Palette generator →

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