#301F44#301F44

#301F44 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.068 H 303.5°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#301F44
RGBrgb(48, 31, 68)
HSLhsl(268, 37%, 19%)
HSVhsv(268, 54%, 27%)
CMYKcmyk(29.4%, 54.4%, 0%, 73.3%)
CIE-LABlab(15.62, 17.24, -20.36)
CIE-LCHlch(15.62, 26.67, 310.26°)
OKLaboklab(27.97% 0.0378 -0.0571)
OKLCHoklch(27.97% 0.068 303.5)
XYZxyz(2.7521, 2.0257, 5.7137)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F44 #33441F
analogous
#1F2144 #301F44 #431F44
triadic
#301F44 #44301F #1F4430
tetradic
#301F44 #441F21 #33441F #1F4443
square
#301F44 #441F21 #33441F #1F4443
split-complementary
#301F44 #44431F #21441F
monochromatic
#0F0A15 #120C1A #301F44 #4E326E #6B4598

Accessibility & contrast

On white

14.94
#301F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F44
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F44#FFFFFF#000000##FFFFFF
##301F441.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142745
Deuteranopia (green-blind)
#192743
Tritanopia (blue-blind)
#2D262E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301f44;
/* rgb */ color: rgb(48, 31, 68);
/* oklch */ color: oklch(28.0% 0.068 303.5);
Tailwind
colors: {
  custom: {
    50: '#695b78',
    500: '#301f44',
    950: '#000000',
  },
}
SCSS
$custom: #301f44;
$custom-light: #695b78;
$custom-dark: #000000;
JSON
{
  "hex": "#301f44",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 68
  },
  "hsl": {
    "h": 267.568,
    "s": 37.374,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27969,
    "c": 0.06844,
    "h": 303.5
  },
  "luminance": 0.02026
}

Semantic roles & 50–950 ramp

primary
#301F44
secondary
#617846
accent
#CD5A99
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #301F44

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

Preview Lab → · Contrast checker → · Palette generator →

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