#301956#301956

#301956 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.105 H 296.4°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#301956
RGBrgb(48, 25, 86)
HSLhsl(263, 55%, 22%)
HSVhsv(263, 71%, 34%)
CMYKcmyk(44.2%, 70.9%, 0%, 66.3%)
CIE-LABlab(15.46, 26.60, -32.93)
CIE-LCHlch(15.46, 42.33, 308.93°)
OKLaboklab(28.28% 0.0466 -0.0939)
OKLCHoklch(28.28% 0.105 296.4)
XYZxyz(3.2458, 1.9955, 9.0164)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301956 #3F5619
analogous
#192156 #301956 #4F1956
triadic
#301956 #563019 #195630
tetradic
#301956 #561921 #3F5619 #19564F
square
#301956 #561921 #3F5619 #19564F
split-complementary
#301956 #564F19 #215619
monochromatic
#0D0718 #160B27 #301956 #4A2785 #6535B5

Accessibility & contrast

On white

15.01
#301956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#301956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301956
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301956#FFFFFF#000000##FFFFFF
##3019561.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#262735
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301956;
/* rgb */ color: rgb(48, 25, 86);
/* oklch */ color: oklch(28.3% 0.105 296.4);
Tailwind
colors: {
  custom: {
    50: '#6c5786',
    500: '#301956',
    950: '#000000',
  },
}
SCSS
$custom: #301956;
$custom-light: #6c5786;
$custom-dark: #000000;
JSON
{
  "hex": "#301956",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 86
  },
  "hsl": {
    "h": 262.623,
    "s": 54.955,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28279,
    "c": 0.10486,
    "h": 296.4
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#301956
secondary
#6F8C3E
accent
#DE4AA6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301956

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

Preview Lab → · Contrast checker → · Palette generator →

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