#301244#301244

#301244 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.092 H 308.9°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#301244
RGBrgb(48, 18, 68)
HSLhsl(276, 58%, 17%)
HSVhsv(276, 74%, 27%)
CMYKcmyk(29.4%, 73.5%, 0%, 73.3%)
CIE-LABlab(12.47, 25.55, -25.39)
CIE-LCHlch(12.47, 36.02, 315.18°)
OKLaboklab(25.66% 0.0579 -0.0718)
OKLCHoklch(25.66% 0.092 308.9)
XYZxyz(2.4784, 1.4784, 5.6225)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301244 #264412
analogous
#171244 #301244 #44123F
triadic
#301244 #443012 #124430
tetradic
#301244 #441712 #264412 #123F44
square
#301244 #441712 #264412 #123F44
split-complementary
#301244 #3F4412 #124417
monochromatic
#110618 #110618 #301244 #521F74 #742CA5

Accessibility & contrast

On white

16.21
#301244 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#301244 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301244
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301244#FFFFFF#000000##FFFFFF
##3012441.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F46
Deuteranopia (green-blind)
#0A2143
Tritanopia (blue-blind)
#2D1C29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #301244;
/* rgb */ color: rgb(48, 18, 68);
/* oklch */ color: oklch(25.7% 0.092 308.9);
Tailwind
colors: {
  custom: {
    50: '#6b5278',
    500: '#301244',
    950: '#000000',
  },
}
SCSS
$custom: #301244;
$custom-light: #6b5278;
$custom-dark: #000000;
JSON
{
  "hex": "#301244",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 68
  },
  "hsl": {
    "h": 276,
    "s": 58.14,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25656,
    "c": 0.09218,
    "h": 308.9
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#301244
secondary
#527D35
accent
#E14684
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #301244

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

Preview Lab → · Contrast checker → · Palette generator →

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