#241256#241256

#241256 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.114 H 287.6°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#241256
RGBrgb(36, 18, 86)
HSLhsl(256, 65%, 20%)
HSVhsv(256, 79%, 34%)
CMYKcmyk(58.1%, 79.1%, 0%, 66.3%)
CIE-LABlab(12.48, 28.36, -37.86)
CIE-LCHlch(12.48, 47.30, 306.83°)
OKLaboklab(25.81% 0.0346 -0.1089)
OKLCHoklch(25.81% 0.114 287.6)
XYZxyz(2.6231, 1.4794, 8.9496)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241256 #445612
analogous
#122256 #241256 #461256
triadic
#241256 #562412 #125624
tetradic
#241256 #561222 #445612 #125646
square
#241256 #561222 #445612 #125646
split-complementary
#241256 #564612 #225612
monochromatic
#0B0519 #0F0723 #241256 #391D89 #4E27BB

Accessibility & contrast

On white

16.20
#241256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #241256
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241256#FFFFFF#000000##FFFFFF
##2412561.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#102433
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #241256;
/* rgb */ color: rgb(36, 18, 86);
/* oklch */ color: oklch(25.8% 0.114 287.6);
Tailwind
colors: {
  custom: {
    50: '#655286',
    500: '#241256',
    950: '#000000',
  },
}
SCSS
$custom: #241256;
$custom-light: #655286;
$custom-dark: #000000;
JSON
{
  "hex": "#241256",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 255.882,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25805,
    "c": 0.11424,
    "h": 287.6
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#241256
secondary
#778F35
accent
#E83FBC
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #241256

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

Preview Lab → · Contrast checker → · Palette generator →

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