#301775#301775

#301775 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.147 H 286.3°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#301775
RGBrgb(48, 23, 117)
HSLhsl(256, 67%, 27%)
HSVhsv(256, 80%, 46%)
CMYKcmyk(59%, 80.3%, 0%, 54.1%)
CIE-LABlab(18.03, 37.29, -49.15)
CIE-LCHlch(18.03, 61.70, 307.18°)
OKLaboklab(31.01% 0.0414 -0.1415)
OKLCHoklch(31.01% 0.147 286.3)
XYZxyz(4.7352, 2.5253, 17.0641)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301775 #5C7517
analogous
#172D75 #301775 #5F1775
triadic
#301775 #753017 #177530
tetradic
#301775 #75172D #5C7517 #17755F
square
#301775 #75172D #5C7517 #17755F
split-complementary
#301775 #755F17 #2D7517
monochromatic
#0A051A #1B0D42 #301775 #4521A8 #5C30D6

Accessibility & contrast

On white

13.95
#301775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301775
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301775#FFFFFF#000000##FFFFFF
##3017751.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#0F3245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301775;
/* rgb */ color: rgb(48, 23, 117);
/* oklch */ color: oklch(31.0% 0.147 286.3);
Tailwind
colors: {
  custom: {
    50: '#72589e',
    500: '#301775',
    950: '#000000',
  },
}
SCSS
$custom: #301775;
$custom-light: #72589e;
$custom-dark: #000000;
JSON
{
  "hex": "#301775",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 255.957,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31014,
    "c": 0.14745,
    "h": 286.3
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#301775
secondary
#8DAA3D
accent
#EA3EBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301775

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

Preview Lab → · Contrast checker → · Palette generator →

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