#301640#301640

#301640 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.080 H 310.6°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#301640
RGBrgb(48, 22, 64)
HSLhsl(277, 49%, 17%)
HSVhsv(277, 66%, 25%)
CMYKcmyk(25%, 65.6%, 0%, 74.9%)
CIE-LABlab(13.06, 22.06, -21.63)
CIE-LCHlch(13.06, 30.89, 315.55°)
OKLaboklab(25.99% 0.0521 -0.0608)
OKLCHoklch(25.99% 0.08 310.6)
XYZxyz(2.4311, 1.5724, 5.0249)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301640 #264016
analogous
#1B1640 #301640 #40163B
triadic
#301640 #403016 #164030
tetradic
#301640 #401B16 #264016 #163B40
square
#301640 #401B16 #264016 #163B40
split-complementary
#301640 #3B4016 #16401B
monochromatic
#110817 #110817 #301640 #52266E #74359B

Accessibility & contrast

On white

15.98
#301640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#301640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301640
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301640#FFFFFF#000000##FFFFFF
##3016401.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082041
Deuteranopia (green-blind)
#12223F
Tritanopia (blue-blind)
#2E1E28
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301640;
/* rgb */ color: rgb(48, 22, 64);
/* oklch */ color: oklch(26.0% 0.080 310.6);
Tailwind
colors: {
  custom: {
    50: '#6a5475',
    500: '#301640',
    950: '#000000',
  },
}
SCSS
$custom: #301640;
$custom-light: #6a5475;
$custom-dark: #000000;
JSON
{
  "hex": "#301640",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 277.143,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.2599,
    "c": 0.08002,
    "h": 310.6
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#301640
secondary
#52773B
accent
#D84F84
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #301640

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

Preview Lab → · Contrast checker → · Palette generator →

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