#301672#301672

#301672 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.145 H 287.3°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#301672
RGBrgb(48, 22, 114)
HSLhsl(257, 68%, 27%)
HSVhsv(257, 81%, 45%)
CMYKcmyk(57.9%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.54, 36.88, -48.03)
CIE-LCHlch(17.54, 60.56, 307.52°)
OKLaboklab(30.57% 0.043 -0.1382)
OKLCHoklch(30.57% 0.145 287.3)
XYZxyz(4.5422, 2.4169, 16.1435)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301672 #587216
analogous
#162A72 #301672 #5E1672
triadic
#301672 #723016 #167230
tetradic
#301672 #72162A #587216 #16725E
square
#301672 #72162A #587216 #16725E
split-complementary
#301672 #725E16 #2A7216
monochromatic
#0B051A #1A0C3F #301672 #4620A5 #5C2CD6

Accessibility & contrast

On white

14.16
#301672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301672
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301672#FFFFFF#000000##FFFFFF
##3016721.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#133043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301672;
/* rgb */ color: rgb(48, 22, 114);
/* oklch */ color: oklch(30.6% 0.145 287.3);
Tailwind
colors: {
  custom: {
    50: '#71579b',
    500: '#301672',
    950: '#000000',
  },
}
SCSS
$custom: #301672;
$custom-light: #71579b;
$custom-dark: #000000;
JSON
{
  "hex": "#301672",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 256.957,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30573,
    "c": 0.14478,
    "h": 287.3
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#301672
secondary
#89A83C
accent
#EB3DBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301672

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

Preview Lab → · Contrast checker → · Palette generator →

#301672 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva