#301985#301985

#301985 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.165 H 282.2°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#301985
RGBrgb(48, 25, 133)
HSLhsl(253, 68%, 31%)
HSVhsv(253, 81%, 52%)
CMYKcmyk(63.9%, 81.2%, 0%, 47.8%)
CIE-LABlab(20.11, 41.19, -55.92)
CIE-LCHlch(20.11, 69.45, 306.37°)
OKLaboklab(32.98% 0.035 -0.1613)
OKLCHoklch(32.98% 0.165 282.2)
XYZxyz(5.7989, 3.0167, 22.4625)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301985 #6E8519
analogous
#193885 #301985 #661985
triadic
#301985 #853019 #198530
tetradic
#301985 #851938 #6E8519 #198566
square
#301985 #851938 #6E8519 #198566
split-complementary
#301985 #856619 #388519
monochromatic
#0B061E #1D0F51 #301985 #4323B9 #5F3EDB

Accessibility & contrast

On white

13.10
#301985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301985
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301985#FFFFFF#000000##FFFFFF
##3019851.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301985;
/* rgb */ color: rgb(48, 25, 133);
/* oklch */ color: oklch(33.0% 0.165 282.2);
Tailwind
colors: {
  custom: {
    50: '#755aaa',
    500: '#301985',
    950: '#000000',
  },
}
SCSS
$custom: #301985;
$custom-light: #755aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#301985",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 252.778,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3298,
    "c": 0.16504,
    "h": 282.2
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#301985
secondary
#9FB941
accent
#EB3DC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301985

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

Preview Lab → · Contrast checker → · Palette generator →

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