#301855#301855

#301855 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.105 H 297.2°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#301855
RGBrgb(48, 24, 85)
HSLhsl(264, 56%, 21%)
HSVhsv(264, 72%, 33%)
CMYKcmyk(43.5%, 71.8%, 0%, 66.7%)
CIE-LABlab(15.16, 26.90, -32.75)
CIE-LCHlch(15.16, 42.38, 309.40°)
OKLaboklab(28.03% 0.048 -0.0934)
OKLCHoklch(28.03% 0.105 297.2)
XYZxyz(3.1848, 1.9375, 8.7987)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301855 #3D5518
analogous
#181F55 #301855 #4F1855
triadic
#301855 #553018 #185530
tetradic
#301855 #55181F #3D5518 #18554F
square
#301855 #55181F #3D5518 #18554F
split-complementary
#301855 #554F18 #1F5518
monochromatic
#0D0718 #150B25 #301855 #4B2585 #6633B4

Accessibility & contrast

On white

15.13
#301855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#301855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301855
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301855#FFFFFF#000000##FFFFFF
##3018551.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#272634
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301855;
/* rgb */ color: rgb(48, 24, 85);
/* oklch */ color: oklch(28.0% 0.105 297.2);
Tailwind
colors: {
  custom: {
    50: '#6c5685',
    500: '#301855',
    950: '#000000',
  },
}
SCSS
$custom: #301855;
$custom-light: #6c5685;
$custom-dark: #000000;
JSON
{
  "hex": "#301855",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 263.607,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28031,
    "c": 0.10503,
    "h": 297.2
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#301855
secondary
#6D8C3D
accent
#DF49A4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301855

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

Preview Lab → · Contrast checker → · Palette generator →

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