#301656#301656

#301656 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.109 H 297.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#301656
RGBrgb(48, 22, 86)
HSLhsl(264, 59%, 21%)
HSVhsv(264, 74%, 34%)
CMYKcmyk(44.2%, 74.4%, 0%, 66.3%)
CIE-LABlab(14.81, 28.39, -33.99)
CIE-LCHlch(14.81, 44.28, 309.88°)
OKLaboklab(27.81% 0.0503 -0.097)
OKLCHoklch(27.81% 0.109 297.4)
XYZxyz(3.1851, 1.8740, 8.9962)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301656 #3C5616
analogous
#161C56 #301656 #501656
triadic
#301656 #563016 #165630
tetradic
#301656 #56161C #3C5616 #165650
square
#301656 #56161C #3C5616 #165650
split-complementary
#301656 #565016 #1C5616
monochromatic
#0E0618 #150A25 #301656 #4B2287 #662FB7

Accessibility & contrast

On white

15.27
#301656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301656
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301656#FFFFFF#000000##FFFFFF
##3016561.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#272534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301656;
/* rgb */ color: rgb(48, 22, 86);
/* oklch */ color: oklch(27.8% 0.109 297.4);
Tailwind
colors: {
  custom: {
    50: '#6c5586',
    500: '#301656',
    950: '#000000',
  },
}
SCSS
$custom: #301656;
$custom-light: #6c5586;
$custom-dark: #000000;
JSON
{
  "hex": "#301656",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 86
  },
  "hsl": {
    "h": 264.375,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27811,
    "c": 0.10928,
    "h": 297.4
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#301656
secondary
#6C8D3A
accent
#E245A3
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301656

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

Preview Lab → · Contrast checker → · Palette generator →

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