#241272#241272

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

Color values

HEX#241272
RGBrgb(36, 18, 114)
HSLhsl(251, 73%, 26%)
HSVhsv(251, 84%, 45%)
CMYKcmyk(68.4%, 84.2%, 0%, 55.3%)
CIE-LABlab(15.60, 37.41, -51.26)
CIE-LCHlch(15.60, 63.46, 306.12°)
OKLaboklab(28.93% 0.026 -0.148)
OKLCHoklch(28.93% 0.15 280)
XYZxyz(3.9802, 2.0223, 16.0969)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241272 #607212
analogous
#123072 #241272 #541272
triadic
#241272 #722412 #127224
tetradic
#241272 #721230 #607212 #127254
square
#241272 #721230 #607212 #127254
split-complementary
#241272 #725412 #307212
monochromatic
#08041A #130A3D #241272 #351AA7 #4523DC

Accessibility & contrast

On white

14.95
#241272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #241272
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241272#FFFFFF#000000##FFFFFF
##2412721.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #241272;
/* rgb */ color: rgb(36, 18, 114);
/* oklch */ color: oklch(28.9% 0.150 280.0);
Tailwind
colors: {
  custom: {
    50: '#6b549c',
    500: '#241272',
    950: '#000000',
  },
}
SCSS
$custom: #241272;
$custom-light: #6b549c;
$custom-dark: #000000;
JSON
{
  "hex": "#241272",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 251.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28927,
    "c": 0.15027,
    "h": 280
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#241272
secondary
#94A937
accent
#EF38CD
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #241272

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

Preview Lab → · Contrast checker → · Palette generator →

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