#301158#301158

#301158 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.118 H 297.8°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#301158
RGBrgb(48, 17, 88)
HSLhsl(266, 68%, 21%)
HSVhsv(266, 81%, 35%)
CMYKcmyk(45.5%, 80.7%, 0%, 65.5%)
CIE-LABlab(14.02, 31.71, -36.62)
CIE-LCHlch(14.02, 48.44, 310.89°)
OKLaboklab(27.31% 0.0553 -0.1048)
OKLCHoklch(27.31% 0.118 297.8)
XYZxyz(3.1804, 1.7338, 9.3977)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301158 #395811
analogous
#111558 #301158 #531158
triadic
#301158 #583011 #115830
tetradic
#301158 #581115 #395811 #115853
square
#301158 #581115 #395811 #115853
split-complementary
#301158 #585311 #155811
monochromatic
#0E051A #140725 #301158 #4C1B8B #6825BF

Accessibility & contrast

On white

15.59
#301158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301158
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301158#FFFFFF#000000##FFFFFF
##3011581.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#262433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301158;
/* rgb */ color: rgb(48, 17, 88);
/* oklch */ color: oklch(27.3% 0.118 297.8);
Tailwind
colors: {
  custom: {
    50: '#6d5388',
    500: '#301158',
    950: '#000000',
  },
}
SCSS
$custom: #301158;
$custom-light: #6d5388;
$custom-dark: #000000;
JSON
{
  "hex": "#301158",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 266.197,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27309,
    "c": 0.11845,
    "h": 297.8
  },
  "luminance": 0.01734
}

Semantic roles & 50–950 ramp

primary
#301158
secondary
#689134
accent
#EA3D9F
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301158

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

Preview Lab → · Contrast checker → · Palette generator →

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