#301950#301950

#301950 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.097 H 299.3°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#301950
RGBrgb(48, 25, 80)
HSLhsl(265, 52%, 21%)
HSVhsv(265, 69%, 31%)
CMYKcmyk(40%, 68.8%, 0%, 68.6%)
CIE-LABlab(14.97, 24.78, -29.66)
CIE-LCHlch(14.97, 38.64, 309.88°)
OKLaboklab(27.77% 0.0472 -0.0843)
OKLCHoklch(27.77% 0.097 299.3)
XYZxyz(3.0142, 1.9028, 7.7963)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301950 #395019
analogous
#191D50 #301950 #4B1950
triadic
#301950 #503019 #195030
tetradic
#301950 #50191D #395019 #19504B
square
#301950 #50191D #395019 #19504B
split-complementary
#301950 #504B19 #1D5019
monochromatic
#0E0717 #140A21 #301950 #4C287F #6836AD

Accessibility & contrast

On white

15.21
#301950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301950
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301950#FFFFFF#000000##FFFFFF
##3019501.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#03254F
Tritanopia (blue-blind)
#292531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301950;
/* rgb */ color: rgb(48, 25, 80);
/* oklch */ color: oklch(27.8% 0.097 299.3);
Tailwind
colors: {
  custom: {
    50: '#6b5781',
    500: '#301950',
    950: '#000000',
  },
}
SCSS
$custom: #301950;
$custom-light: #6b5781;
$custom-dark: #000000;
JSON
{
  "hex": "#301950",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 265.091,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27765,
    "c": 0.09665,
    "h": 299.3
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#301950
secondary
#68863E
accent
#DC4CA0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301950

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

Preview Lab → · Contrast checker → · Palette generator →

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