#301B3D#301B3D

#301B3D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.066 H 311.2°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#301B3D
RGBrgb(48, 27, 61)
HSLhsl(277, 39%, 17%)
HSVhsv(277, 56%, 24%)
CMYKcmyk(21.3%, 55.7%, 0%, 76.1%)
CIE-LABlab(14.11, 17.97, -17.85)
CIE-LCHlch(14.11, 25.33, 315.18°)
OKLaboklab(26.7% 0.0435 -0.0498)
OKLCHoklch(26.7% 0.066 311.2)
XYZxyz(2.4530, 1.7492, 4.6224)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B3D #283D1B
analogous
#1F1B3D #301B3D #3D1B39
triadic
#301B3D #3D301B #1B3D30
tetradic
#301B3D #3D1F1B #283D1B #1B393D
square
#301B3D #3D1F1B #283D1B #1B393D
split-complementary
#301B3D #393D1B #1B3D1F
monochromatic
#110915 #110915 #301B3D #512E67 #734192

Accessibility & contrast

On white

15.56
#301B3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301B3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B3D
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B3D#FFFFFF#000000##FFFFFF
##301B3D1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13233E
Deuteranopia (green-blind)
#19243C
Tritanopia (blue-blind)
#2F2029
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301b3d;
/* rgb */ color: rgb(48, 27, 61);
/* oklch */ color: oklch(26.7% 0.066 311.2);
Tailwind
colors: {
  custom: {
    50: '#695872',
    500: '#301b3d',
    950: '#000000',
  },
}
SCSS
$custom: #301b3d;
$custom-light: #695872;
$custom-dark: #000000;
JSON
{
  "hex": "#301b3d",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 61
  },
  "hsl": {
    "h": 277.059,
    "s": 38.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26701,
    "c": 0.06613,
    "h": 311.2
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#301B3D
secondary
#547242
accent
#CF5986
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060308
muted
#7A787B

Preview Lab

Preview with #301B3D

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

Preview Lab → · Contrast checker → · Palette generator →

#301B3D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva