#301452#301452

#301452 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.107 H 299.9°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#301452
RGBrgb(48, 20, 82)
HSLhsl(267, 61%, 20%)
HSVhsv(267, 76%, 32%)
CMYKcmyk(41.5%, 75.6%, 0%, 67.8%)
CIE-LABlab(14.05, 28.36, -32.51)
CIE-LCHlch(14.05, 43.14, 311.09°)
OKLaboklab(27.16% 0.0534 -0.0927)
OKLCHoklch(27.16% 0.107 299.9)
XYZxyz(2.9917, 1.7379, 8.1588)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301452 #365214
analogous
#141752 #301452 #4F1452
triadic
#301452 #523014 #145230
tetradic
#301452 #521417 #365214 #14524F
square
#301452 #521417 #365214 #14524F
split-complementary
#301452 #524F14 #175214
monochromatic
#0E0619 #130821 #301452 #4D2083 #6A2CB4

Accessibility & contrast

On white

15.58
#301452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301452
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301452#FFFFFF#000000##FFFFFF
##3014521.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#282331
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301452;
/* rgb */ color: rgb(48, 20, 82);
/* oklch */ color: oklch(27.2% 0.107 299.9);
Tailwind
colors: {
  custom: {
    50: '#6c5483',
    500: '#301452',
    950: '#000000',
  },
}
SCSS
$custom: #301452;
$custom-light: #6c5483;
$custom-dark: #000000;
JSON
{
  "hex": "#301452",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 267.097,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.27155,
    "c": 0.10697,
    "h": 299.9
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#301452
secondary
#658A38
accent
#E4449C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301452

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

Preview Lab → · Contrast checker → · Palette generator →

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