#301245#301245

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

Color values

HEX#301245
RGBrgb(48, 18, 69)
HSLhsl(275, 59%, 17%)
HSVhsv(275, 74%, 27%)
CMYKcmyk(30.4%, 73.9%, 0%, 72.9%)
CIE-LABlab(12.55, 25.82, -25.96)
CIE-LCHlch(12.55, 36.62, 314.85°)
OKLaboklab(25.74% 0.0578 -0.0734)
OKLCHoklch(25.74% 0.093 308.2)
XYZxyz(2.5092, 1.4907, 5.7846)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301245 #274512
analogous
#171245 #301245 #451241
triadic
#301245 #453012 #124530
tetradic
#301245 #451712 #274512 #124145
square
#301245 #451712 #274512 #124145
split-complementary
#301245 #414512 #124517
monochromatic
#110618 #110618 #301245 #521F76 #742BA6

Accessibility & contrast

On white

16.18
#301245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301245
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301245#FFFFFF#000000##FFFFFF
##3012451.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#082144
Tritanopia (blue-blind)
#2D1D29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #301245;
/* rgb */ color: rgb(48, 18, 69);
/* oklch */ color: oklch(25.7% 0.093 308.2);
Tailwind
colors: {
  custom: {
    50: '#6b5279',
    500: '#301245',
    950: '#000000',
  },
}
SCSS
$custom: #301245;
$custom-light: #6b5279;
$custom-dark: #000000;
JSON
{
  "hex": "#301245",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 275.294,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25738,
    "c": 0.09344,
    "h": 308.2
  },
  "luminance": 0.01491
}

Semantic roles & 50–950 ramp

primary
#301245
secondary
#537E35
accent
#E24686
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #301245

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

Preview Lab → · Contrast checker → · Palette generator →

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