#301683#301683

#301683 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.165 H 283.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#301683
RGBrgb(48, 22, 131)
HSLhsl(254, 71%, 30%)
HSVhsv(254, 83%, 51%)
CMYKcmyk(63.4%, 83.2%, 0%, 48.6%)
CIE-LABlab(19.39, 42.02, -55.84)
CIE-LCHlch(19.39, 69.88, 306.96°)
OKLaboklab(32.42% 0.0374 -0.161)
OKLCHoklch(32.42% 0.165 283.1)
XYZxyz(5.6013, 2.8405, 21.7214)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301683 #698316
analogous
#163283 #301683 #671683
triadic
#301683 #833016 #168330
tetradic
#301683 #831632 #698316 #168367
square
#301683 #831632 #698316 #168367
split-complementary
#301683 #836716 #328316
monochromatic
#0A041A #1D0D4F #301683 #431FB7 #5E36DD

Accessibility & contrast

On white

13.39
#301683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301683
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301683#FFFFFF#000000##FFFFFF
##3016831.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301683;
/* rgb */ color: rgb(48, 22, 131);
/* oklch */ color: oklch(32.4% 0.165 283.1);
Tailwind
colors: {
  custom: {
    50: '#7458a8',
    500: '#301683',
    950: '#000000',
  },
}
SCSS
$custom: #301683;
$custom-light: #7458a8;
$custom-dark: #000000;
JSON
{
  "hex": "#301683",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 254.312,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.16532,
    "h": 283.1
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#301683
secondary
#9AB73D
accent
#EE3AC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #301683

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

Preview Lab → · Contrast checker → · Palette generator →

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