#301F7B#301F7B

#301F7B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.146 H 283.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#301F7B
RGBrgb(48, 31, 123)
HSLhsl(251, 60%, 30%)
HSVhsv(251, 75%, 48%)
CMYKcmyk(61%, 74.8%, 0%, 51.8%)
CIE-LABlab(20.20, 34.80, -49.44)
CIE-LCHlch(20.20, 60.46, 305.14°)
OKLaboklab(32.72% 0.0335 -0.1424)
OKLCHoklch(32.72% 0.146 283.2)
XYZxyz(5.2830, 3.0381, 19.0431)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F7B #6A7B1F
analogous
#1F3C7B #301F7B #5E1F7B
triadic
#301F7B #7B301F #1F7B30
tetradic
#301F7B #7B1F3C #6A7B1F #1F7B5E
square
#301F7B #7B1F3C #6A7B1F #1F7B5E
split-complementary
#301F7B #7B5E1F #3C7B1F
monochromatic
#0A0619 #1D134A #301F7B #432BAC #5E44D0

Accessibility & contrast

On white

13.06
#301F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F7B
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F7B#FFFFFF#000000##FFFFFF
##301F7B1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#02384B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301f7b;
/* rgb */ color: rgb(48, 31, 123);
/* oklch */ color: oklch(32.7% 0.146 283.2);
Tailwind
colors: {
  custom: {
    50: '#725da2',
    500: '#301f7b',
    950: '#000000',
  },
}
SCSS
$custom: #301f7b;
$custom-light: #725da2;
$custom-dark: #000000;
JSON
{
  "hex": "#301f7b",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 251.087,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32724,
    "c": 0.14631,
    "h": 283.2
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#301F7B
secondary
#9BAE48
accent
#E345C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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