#301F7C#301F7C

#301F7C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.148 H 283.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#301F7C
RGBrgb(48, 31, 124)
HSLhsl(251, 60%, 30%)
HSVhsv(251, 75%, 49%)
CMYKcmyk(61.3%, 75%, 0%, 51.4%)
CIE-LABlab(20.30, 35.13, -49.91)
CIE-LCHlch(20.30, 61.03, 305.14°)
OKLaboklab(32.82% 0.0332 -0.1438)
OKLCHoklch(32.82% 0.148 283)
XYZxyz(5.3459, 3.0632, 19.3744)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F7C #6B7C1F
analogous
#1F3C7C #301F7C #5E1F7C
triadic
#301F7C #7C301F #1F7C30
tetradic
#301F7C #7C1F3C #6B7C1F #1F7C5E
square
#301F7C #7C1F3C #6B7C1F #1F7C5E
split-complementary
#301F7C #7C5E1F #3C7C1F
monochromatic
#0A071A #1D134B #301F7C #432BAD #5E45D0

Accessibility & contrast

On white

13.02
#301F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F7C
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F7C#FFFFFF#000000##FFFFFF
##301F7C1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301f7c;
/* rgb */ color: rgb(48, 31, 124);
/* oklch */ color: oklch(32.8% 0.148 283.0);
Tailwind
colors: {
  custom: {
    50: '#725da3',
    500: '#301f7c',
    950: '#000000',
  },
}
SCSS
$custom: #301f7c;
$custom-light: #725da3;
$custom-dark: #000000;
JSON
{
  "hex": "#301f7c",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 250.968,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32825,
    "c": 0.1476,
    "h": 283
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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