#301F69#301F69

#301F69 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.122 H 287.6°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#301F69
RGBrgb(48, 31, 105)
HSLhsl(254, 54%, 27%)
HSVhsv(254, 70%, 41%)
CMYKcmyk(54.3%, 70.5%, 0%, 58.8%)
CIE-LABlab(18.49, 28.92, -40.62)
CIE-LCHlch(18.49, 49.87, 305.45°)
OKLaboklab(30.98% 0.0369 -0.1166)
OKLCHoklch(30.98% 0.122 287.6)
XYZxyz(4.2580, 2.6281, 13.6448)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F69 #58691F
analogous
#1F3369 #301F69 #551F69
triadic
#301F69 #69301F #1F6930
tetradic
#301F69 #691F33 #58691F #1F6955
square
#301F69 #691F33 #58691F #1F6955
split-complementary
#301F69 #69551F #33691F
monochromatic
#0B0718 #1A113A #301F69 #462D98 #5C3DC6

Accessibility & contrast

On white

13.77
#301F69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301F69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F69
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F69#FFFFFF#000000##FFFFFF
##301F691.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6B
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#1B3141
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301f69;
/* rgb */ color: rgb(48, 31, 105);
/* oklch */ color: oklch(31.0% 0.122 287.6);
Tailwind
colors: {
  custom: {
    50: '#6f5c95',
    500: '#301f69',
    950: '#000000',
  },
}
SCSS
$custom: #301f69;
$custom-light: #6f5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#301f69",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 105
  },
  "hsl": {
    "h": 253.784,
    "s": 54.412,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30978,
    "c": 0.12228,
    "h": 287.6
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#301F69
secondary
#899D47
accent
#DE4ABC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #301F69

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

Preview Lab → · Contrast checker → · Palette generator →

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