#241277#241277

#241277 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.156 H 279.0°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#241277
RGBrgb(36, 18, 119)
HSLhsl(251, 74%, 27%)
HSVhsv(251, 85%, 47%)
CMYKcmyk(69.7%, 84.9%, 0%, 53.3%)
CIE-LABlab(16.20, 38.98, -53.50)
CIE-LCHlch(16.20, 66.20, 306.08°)
OKLaboklab(29.52% 0.0244 -0.1545)
OKLCHoklch(29.52% 0.156 279)
XYZxyz(4.2726, 2.1392, 17.6369)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241277 #657712
analogous
#123377 #241277 #571277
triadic
#241277 #772412 #127724
tetradic
#241277 #771233 #657712 #127757
square
#241277 #771233 #657712 #127757
split-complementary
#241277 #775712 #337712
monochromatic
#08041B #140A42 #241277 #341AAC #4625DE

Accessibility & contrast

On white

14.71
#241277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#241277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241277
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241277#FFFFFF#000000##FFFFFF
##2412771.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7A
Deuteranopia (green-blind)
#002475
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #241277;
/* rgb */ color: rgb(36, 18, 119);
/* oklch */ color: oklch(29.5% 0.156 279.0);
Tailwind
colors: {
  custom: {
    50: '#6d549f',
    500: '#241277',
    950: '#000000',
  },
}
SCSS
$custom: #241277;
$custom-light: #6d549f;
$custom-dark: #000000;
JSON
{
  "hex": "#241277",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 119
  },
  "hsl": {
    "h": 250.693,
    "s": 73.723,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29516,
    "c": 0.15642,
    "h": 279
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#241277
secondary
#98AD37
accent
#F037CF
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #241277

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

Preview Lab → · Contrast checker → · Palette generator →

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