#301F4E#301F4E

#301F4E is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.7% C 0.084 H 297.6°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#301F4E
RGBrgb(48, 31, 78)
HSLhsl(262, 43%, 21%)
HSVhsv(262, 60%, 31%)
CMYKcmyk(38.5%, 60.3%, 0%, 69.4%)
CIE-LABlab(16.30, 20.26, -26.15)
CIE-LCHlch(16.30, 33.08, 307.76°)
OKLaboklab(28.69% 0.0387 -0.074)
OKLCHoklch(28.69% 0.084 297.6)
XYZxyz(3.0837, 2.1584, 7.4604)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F4E #3D4E1F
analogous
#1F264E #301F4E #481F4E
triadic
#301F4E #4E301F #1F4E30
tetradic
#301F4E #4E1F26 #3D4E1F #1F4E48
square
#301F4E #4E1F26 #3D4E1F #1F4E48
split-complementary
#301F4E #4E481F #264E1F
monochromatic
#0D0916 #150E22 #301F4E #4B307A #6642A6

Accessibility & contrast

On white

14.67
#301F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#301F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F4E
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F4E#FFFFFF#000000##FFFFFF
##301F4E1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2950
Deuteranopia (green-blind)
#10284D
Tritanopia (blue-blind)
#292833
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301f4e;
/* rgb */ color: rgb(48, 31, 78);
/* oklch */ color: oklch(28.7% 0.084 297.6);
Tailwind
colors: {
  custom: {
    50: '#6a5b80',
    500: '#301f4e',
    950: '#000000',
  },
}
SCSS
$custom: #301f4e;
$custom-light: #6a5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#301f4e",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 261.702,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28689,
    "c": 0.08354,
    "h": 297.6
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#301F4E
secondary
#6D8346
accent
#D355A5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #301F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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