#241252#241252

#241252 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.109 H 289.1°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#241252
RGBrgb(36, 18, 82)
HSLhsl(257, 64%, 20%)
HSVhsv(257, 78%, 32%)
CMYKcmyk(56.1%, 78%, 0%, 67.8%)
CIE-LABlab(12.07, 27.04, -35.80)
CIE-LCHlch(12.07, 44.87, 307.06°)
OKLaboklab(25.39% 0.0356 -0.1028)
OKLCHoklch(25.39% 0.109 289.1)
XYZxyz(2.4664, 1.4168, 8.1245)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241252 #405212
analogous
#122052 #241252 #441252
triadic
#241252 #522412 #125224
tetradic
#241252 #521220 #405212 #125244
square
#241252 #521220 #405212 #125244
split-complementary
#241252 #524412 #205212
monochromatic
#0B0619 #0E0720 #241252 #3A1D84 #5028B6

Accessibility & contrast

On white

16.36
#241252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#241252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241252
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241252#FFFFFF#000000##FFFFFF
##2412521.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#132330
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #241252;
/* rgb */ color: rgb(36, 18, 82);
/* oklch */ color: oklch(25.4% 0.109 289.1);
Tailwind
colors: {
  custom: {
    50: '#655183',
    500: '#241252',
    950: '#000000',
  },
}
SCSS
$custom: #241252;
$custom-light: #655183;
$custom-dark: #000000;
JSON
{
  "hex": "#241252",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 256.875,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25391,
    "c": 0.10884,
    "h": 289.1
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#241252
secondary
#738B35
accent
#E741B8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #241252

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

Preview Lab → · Contrast checker → · Palette generator →

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