#301895#301895

#301895 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.185 H 279.4°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#301895
RGBrgb(48, 24, 149)
HSLhsl(252, 72%, 34%)
HSVhsv(252, 84%, 58%)
CMYKcmyk(67.8%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.77, 46.48, -63.16)
CIE-LCHlch(21.77, 78.42, 306.35°)
OKLaboklab(34.66% 0.0303 -0.1824)
OKLCHoklch(34.66% 0.185 279.4)
XYZxyz(6.9686, 3.4510, 28.7268)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301895 #7D9518
analogous
#183F95 #301895 #6F1895
triadic
#301895 #953018 #189530
tetradic
#301895 #95183F #7D9518 #18956F
square
#301895 #95183F #7D9518 #18956F
split-complementary
#301895 #956F18 #3F9518
monochromatic
#0E072C #1F1060 #301895 #4120CA #6446E1

Accessibility & contrast

On white

12.42
#301895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#301895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301895
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301895#FFFFFF#000000##FFFFFF
##3018951.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301895;
/* rgb */ color: rgb(48, 24, 149);
/* oklch */ color: oklch(34.7% 0.185 279.4);
Tailwind
colors: {
  custom: {
    50: '#785ab5',
    500: '#301895',
    950: '#000000',
  },
}
SCSS
$custom: #301895;
$custom-light: #785ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#301895",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 251.52,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34661,
    "c": 0.18486,
    "h": 279.4
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#301895
secondary
#ABC246
accent
#EF39CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301895

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

Preview Lab → · Contrast checker → · Palette generator →

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