#241262#241262

#241262 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.130 H 283.9°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#241262
RGBrgb(36, 18, 98)
HSLhsl(254, 69%, 23%)
HSVhsv(254, 82%, 38%)
CMYKcmyk(63.3%, 81.6%, 0%, 61.6%)
CIE-LABlab(13.76, 32.27, -43.80)
CIE-LCHlch(13.76, 54.41, 306.38°)
OKLaboklab(27.1% 0.0312 -0.1262)
OKLCHoklch(27.1% 0.13 283.9)
XYZxyz(3.1478, 1.6893, 11.7131)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241262 #506212
analogous
#122862 #241262 #4C1262
triadic
#241262 #622412 #126224
tetradic
#241262 #621228 #506212 #12624C
square
#241262 #621228 #506212 #12624C
split-complementary
#241262 #624C12 #286212
monochromatic
#09051A #11092E #241262 #371B96 #4A25C9

Accessibility & contrast

On white

15.70
#241262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#241262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241262
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241262#FFFFFF#000000##FFFFFF
##2412621.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.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: #241262;
/* rgb */ color: rgb(36, 18, 98);
/* oklch */ color: oklch(27.1% 0.130 283.9);
Tailwind
colors: {
  custom: {
    50: '#685290',
    500: '#241262',
    950: '#000000',
  },
}
SCSS
$custom: #241262;
$custom-light: #685290;
$custom-dark: #000000;
JSON
{
  "hex": "#241262",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 253.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.271,
    "c": 0.13003,
    "h": 283.9
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#241262
secondary
#839A36
accent
#EC3CC4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #241262

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

Preview Lab → · Contrast checker → · Palette generator →

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