#301756#301756

#301756 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.108 H 297.1°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#301756
RGBrgb(48, 23, 86)
HSLhsl(264, 58%, 21%)
HSVhsv(264, 73%, 34%)
CMYKcmyk(44.2%, 73.3%, 0%, 66.3%)
CIE-LABlab(15.02, 27.80, -33.64)
CIE-LCHlch(15.02, 43.64, 309.57°)
OKLaboklab(27.96% 0.0491 -0.096)
OKLCHoklch(27.96% 0.108 297.1)
XYZxyz(3.2046, 1.9130, 9.0027)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301756 #3D5617
analogous
#171E56 #301756 #501756
triadic
#301756 #563017 #175630
tetradic
#301756 #56171E #3D5617 #175650
square
#301756 #56171E #3D5617 #175650
split-complementary
#301756 #565017 #1E5617
monochromatic
#0D0618 #150A26 #301756 #4B2486 #6631B7

Accessibility & contrast

On white

15.19
#301756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301756
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301756#FFFFFF#000000##FFFFFF
##3017561.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#262634
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301756;
/* rgb */ color: rgb(48, 23, 86);
/* oklch */ color: oklch(28.0% 0.108 297.1);
Tailwind
colors: {
  custom: {
    50: '#6c5686',
    500: '#301756',
    950: '#000000',
  },
}
SCSS
$custom: #301756;
$custom-light: #6c5686;
$custom-dark: #000000;
JSON
{
  "hex": "#301756",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 263.81,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27963,
    "c": 0.10784,
    "h": 297.1
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#301756
secondary
#6D8D3C
accent
#E147A4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301756

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

Preview Lab → · Contrast checker → · Palette generator →

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