#301F46#301F46

#301F46 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.1% C 0.071 H 302.1°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#301F46
RGBrgb(48, 31, 70)
HSLhsl(266, 39%, 20%)
HSVhsv(266, 56%, 27%)
CMYKcmyk(31.4%, 55.7%, 0%, 72.5%)
CIE-LABlab(15.75, 17.83, -21.54)
CIE-LCHlch(15.75, 27.96, 309.62°)
OKLaboklab(28.11% 0.038 -0.0605)
OKLCHoklch(28.11% 0.071 302.1)
XYZxyz(2.8142, 2.0505, 6.0407)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F46 #35461F
analogous
#1F2146 #301F46 #441F46
triadic
#301F46 #46301F #1F4630
tetradic
#301F46 #461F21 #35461F #1F4644
square
#301F46 #461F21 #35461F #1F4644
split-complementary
#301F46 #46441F #21461F
monochromatic
#0F0915 #130C1C #301F46 #4D3270 #6A459B

Accessibility & contrast

On white

14.89
#301F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#301F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F46
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F46#FFFFFF#000000##FFFFFF
##301F461.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132747
Deuteranopia (green-blind)
#172745
Tritanopia (blue-blind)
#2C262F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301f46;
/* rgb */ color: rgb(48, 31, 70);
/* oklch */ color: oklch(28.1% 0.071 302.1);
Tailwind
colors: {
  custom: {
    50: '#6a5b79',
    500: '#301f46',
    950: '#000000',
  },
}
SCSS
$custom: #301f46;
$custom-light: #6a5b79;
$custom-dark: #000000;
JSON
{
  "hex": "#301f46",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 70
  },
  "hsl": {
    "h": 266.154,
    "s": 38.614,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28106,
    "c": 0.07149,
    "h": 302.1
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#301F46
secondary
#647A46
accent
#CF599B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #301F46

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

Preview Lab → · Contrast checker → · Palette generator →

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