#241173#241173

#241173 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.152 H 279.9°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#241173
RGBrgb(36, 17, 115)
HSLhsl(252, 74%, 26%)
HSVhsv(252, 85%, 45%)
CMYKcmyk(68.7%, 85.2%, 0%, 54.9%)
CIE-LABlab(15.56, 38.21, -51.99)
CIE-LCHlch(15.56, 64.52, 306.31°)
OKLaboklab(28.93% 0.0262 -0.1501)
OKLCHoklch(28.93% 0.152 279.9)
XYZxyz(4.0215, 2.0134, 16.3930)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241173 #607311
analogous
#112F73 #241173 #551173
triadic
#241173 #732411 #117324
tetradic
#241173 #73112F #607311 #117355
square
#241173 #73112F #607311 #117355
split-complementary
#241173 #735511 #2F7311
monochromatic
#08041B #13093E #241173 #3519A8 #4521DE

Accessibility & contrast

On white

14.97
#241173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#241173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241173
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241173#FFFFFF#000000##FFFFFF
##2411731.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002371
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #241173;
/* rgb */ color: rgb(36, 17, 115);
/* oklch */ color: oklch(28.9% 0.152 279.9);
Tailwind
colors: {
  custom: {
    50: '#6c539c',
    500: '#241173',
    950: '#000000',
  },
}
SCSS
$custom: #241173;
$custom-light: #6c539c;
$custom-dark: #000000;
JSON
{
  "hex": "#241173",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 251.633,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.2893,
    "c": 0.15236,
    "h": 279.9
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#241173
secondary
#94AA36
accent
#F137CD
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #241173

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

Preview Lab → · Contrast checker → · Palette generator →

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