#241270#241270

#241270 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.148 H 280.4°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#241270
RGBrgb(36, 18, 112)
HSLhsl(251, 72%, 25%)
HSVhsv(251, 84%, 44%)
CMYKcmyk(67.9%, 83.9%, 0%, 56.1%)
CIE-LABlab(15.37, 36.77, -50.36)
CIE-LCHlch(15.37, 62.35, 306.14°)
OKLaboklab(28.69% 0.0267 -0.1454)
OKLCHoklch(28.69% 0.148 280.4)
XYZxyz(3.8676, 1.9772, 15.5039)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241270 #5E7012
analogous
#122F70 #241270 #531270
triadic
#241270 #702412 #127024
tetradic
#241270 #70122F #5E7012 #127053
square
#241270 #70122F #5E7012 #127053
split-complementary
#241270 #705312 #2F7012
monochromatic
#08041A #130A3B #241270 #351AA5 #4623D9

Accessibility & contrast

On white

15.05
#241270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #241270
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241270#FFFFFF#000000##FFFFFF
##2412701.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00236E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #241270;
/* rgb */ color: rgb(36, 18, 112);
/* oklch */ color: oklch(28.7% 0.148 280.4);
Tailwind
colors: {
  custom: {
    50: '#6b539a',
    500: '#241270',
    950: '#000000',
  },
}
SCSS
$custom: #241270;
$custom-light: #6b539a;
$custom-dark: #000000;
JSON
{
  "hex": "#241270",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 251.489,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28694,
    "c": 0.14779,
    "h": 280.4
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#241270
secondary
#92A737
accent
#EF39CC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #241270

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

Preview Lab → · Contrast checker → · Palette generator →

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