#301952#301952

#301952 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.099 H 298.3°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#301952
RGBrgb(48, 25, 82)
HSLhsl(264, 53%, 21%)
HSVhsv(264, 70%, 32%)
CMYKcmyk(41.5%, 69.5%, 0%, 67.8%)
CIE-LABlab(15.13, 25.38, -30.76)
CIE-LCHlch(15.13, 39.88, 309.53°)
OKLaboklab(27.93% 0.0471 -0.0876)
OKLCHoklch(27.93% 0.099 298.3)
XYZxyz(3.0892, 1.9328, 8.1913)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301952 #3B5219
analogous
#191E52 #301952 #4C1952
triadic
#301952 #523019 #195230
tetradic
#301952 #52191E #3B5219 #19524C
square
#301952 #52191E #3B5219 #19524C
split-complementary
#301952 #524C19 #1E5219
monochromatic
#0E0717 #150B23 #301952 #4B2781 #6736B0

Accessibility & contrast

On white

15.14
#301952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301952
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301952#FFFFFF#000000##FFFFFF
##3019521.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#282633
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301952;
/* rgb */ color: rgb(48, 25, 82);
/* oklch */ color: oklch(27.9% 0.099 298.3);
Tailwind
colors: {
  custom: {
    50: '#6b5783',
    500: '#301952',
    950: '#000000',
  },
}
SCSS
$custom: #301952;
$custom-light: #6b5783;
$custom-dark: #000000;
JSON
{
  "hex": "#301952",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 264.211,
    "s": 53.271,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27933,
    "c": 0.09941,
    "h": 298.3
  },
  "luminance": 0.01933
}

Semantic roles & 50–950 ramp

primary
#301952
secondary
#6B883E
accent
#DD4BA2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301952

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

Preview Lab → · Contrast checker → · Palette generator →

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