#301856#301856

#301856 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.106 H 296.7°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#301856
RGBrgb(48, 24, 86)
HSLhsl(263, 56%, 22%)
HSVhsv(263, 72%, 34%)
CMYKcmyk(44.2%, 72.1%, 0%, 66.3%)
CIE-LABlab(15.24, 27.21, -33.29)
CIE-LCHlch(15.24, 42.99, 309.26°)
OKLaboklab(28.12% 0.0478 -0.095)
OKLCHoklch(28.12% 0.106 296.7)
XYZxyz(3.2248, 1.9535, 9.0094)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301856 #3E5618
analogous
#181F56 #301856 #4F1856
triadic
#301856 #563018 #185630
tetradic
#301856 #56181F #3E5618 #18564F
square
#301856 #56181F #3E5618 #18564F
split-complementary
#301856 #564F18 #1F5618
monochromatic
#0D0718 #150B26 #301856 #4B2586 #6533B6

Accessibility & contrast

On white

15.10
#301856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301856
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301856#FFFFFF#000000##FFFFFF
##3018561.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#262734
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301856;
/* rgb */ color: rgb(48, 24, 86);
/* oklch */ color: oklch(28.1% 0.106 296.7);
Tailwind
colors: {
  custom: {
    50: '#6c5786',
    500: '#301856',
    950: '#000000',
  },
}
SCSS
$custom: #301856;
$custom-light: #6c5786;
$custom-dark: #000000;
JSON
{
  "hex": "#301856",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 263.226,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28119,
    "c": 0.10637,
    "h": 296.7
  },
  "luminance": 0.01954
}

Semantic roles & 50–950 ramp

primary
#301856
secondary
#6E8D3D
accent
#E048A5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301856

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

Preview Lab → · Contrast checker → · Palette generator →

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