#241162#241162

#241162 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.131 H 284.1°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#241162
RGBrgb(36, 17, 98)
HSLhsl(254, 70%, 23%)
HSVhsv(254, 83%, 38%)
CMYKcmyk(63.3%, 82.7%, 0%, 61.6%)
CIE-LABlab(13.58, 32.81, -44.11)
CIE-LCHlch(13.58, 54.98, 306.64°)
OKLaboklab(26.97% 0.0319 -0.1271)
OKLCHoklch(26.97% 0.131 284.1)
XYZxyz(3.1319, 1.6576, 11.7078)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241162 #4F6211
analogous
#112762 #241162 #4C1162
triadic
#241162 #622411 #116224
tetradic
#241162 #621127 #4F6211 #11624C
square
#241162 #621127 #4F6211 #11624C
split-complementary
#241162 #624C11 #276211
monochromatic
#0A051A #11082E #241162 #371A96 #4A23CA

Accessibility & contrast

On white

15.77
#241162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#241162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241162
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241162#FFFFFF#000000##FFFFFF
##2411621.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#002061
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #241162;
/* rgb */ color: rgb(36, 17, 98);
/* oklch */ color: oklch(27.0% 0.131 284.1);
Tailwind
colors: {
  custom: {
    50: '#685290',
    500: '#241162',
    950: '#000000',
  },
}
SCSS
$custom: #241162;
$custom-light: #685290;
$custom-dark: #000000;
JSON
{
  "hex": "#241162",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 254.074,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26969,
    "c": 0.13108,
    "h": 284.1
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#241162
secondary
#829A34
accent
#ED3BC3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #241162

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

Preview Lab → · Contrast checker → · Palette generator →

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