#301155#301155

#301155 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.115 H 299.2°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#301155
RGBrgb(48, 17, 85)
HSLhsl(267, 67%, 20%)
HSVhsv(267, 80%, 33%)
CMYKcmyk(43.5%, 80%, 0%, 66.7%)
CIE-LABlab(13.74, 30.85, -35.05)
CIE-LCHlch(13.74, 46.70, 311.35°)
OKLaboklab(27.02% 0.0561 -0.1001)
OKLCHoklch(27.02% 0.115 299.2)
XYZxyz(3.0587, 1.6851, 8.7567)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301155 #365511
analogous
#111455 #301155 #521155
triadic
#301155 #553011 #115530
tetradic
#301155 #551114 #365511 #115552
square
#301155 #551114 #365511 #115552
split-complementary
#301155 #555211 #145511
monochromatic
#0E051A #130722 #301155 #4D1B88 #6A25BB

Accessibility & contrast

On white

15.71
#301155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301155
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301155#FFFFFF#000000##FFFFFF
##3011551.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#272232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301155;
/* rgb */ color: rgb(48, 17, 85);
/* oklch */ color: oklch(27.0% 0.115 299.2);
Tailwind
colors: {
  custom: {
    50: '#6d5285',
    500: '#301155',
    950: '#000000',
  },
}
SCSS
$custom: #301155;
$custom-light: #6d5285;
$custom-dark: #000000;
JSON
{
  "hex": "#301155",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 267.353,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.27022,
    "c": 0.11478,
    "h": 299.2
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#301155
secondary
#658E34
accent
#EA3E9B
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301155

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

Preview Lab → · Contrast checker → · Palette generator →

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