#240341#240341

#240341 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.6% C 0.107 H 302.1°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#240341
RGBrgb(36, 3, 65)
HSLhsl(272, 91%, 13%)
HSVhsv(272, 95%, 25%)
CMYKcmyk(44.6%, 95.4%, 0%, 74.5%)
CIE-LABlab(7.42, 30.16, -31.56)
CIE-LCHlch(7.42, 43.65, 313.70°)
OKLaboklab(21.59% 0.0566 -0.0903)
OKLCHoklch(21.59% 0.107 302.1)
XYZxyz(1.7140, 0.8218, 5.0683)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240341 #204103
analogous
#050341 #240341 #41033F
triadic
#240341 #412403 #034124
tetradic
#240341 #410503 #204103 #033F41
square
#240341 #410503 #204103 #033F41
split-complementary
#240341 #3F4103 #034105
monochromatic
#10011D #10011D #240341 #44067B #6508B6

Accessibility & contrast

On white

18.04
#240341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240341 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240341
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240341#FFFFFF#000000##FFFFFF
##2403411.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001640
Tritanopia (blue-blind)
#1D1523
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240341;
/* rgb */ color: rgb(36, 3, 65);
/* oklch */ color: oklch(21.6% 0.107 302.1);
Tailwind
colors: {
  custom: {
    50: '#634876',
    500: '#240341',
    950: '#000000',
  },
}
SCSS
$custom: #240341;
$custom-light: #634876;
$custom-dark: #000000;
JSON
{
  "hex": "#240341",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 65
  },
  "hsl": {
    "h": 271.935,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2159,
    "c": 0.10656,
    "h": 302.1
  },
  "luminance": 0.00822
}

Semantic roles & 50–950 ramp

primary
#240341
secondary
#4D831D
accent
#FF298D
background
#F6F4F7
surface
#EBE6ED
border
#C6C2C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #240341

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

Preview Lab → · Contrast checker → · Palette generator →

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