#240843#240843

#240843 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.102 H 299.4°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#240843
RGBrgb(36, 8, 67)
HSLhsl(268, 79%, 15%)
HSVhsv(268, 88%, 26%)
CMYKcmyk(46.3%, 88.1%, 0%, 73.7%)
CIE-LABlab(8.60, 27.90, -31.05)
CIE-LCHlch(8.60, 41.74, 311.94°)
OKLaboklab(22.48% 0.0501 -0.0888)
OKLCHoklch(22.48% 0.102 299.4)
XYZxyz(1.8272, 0.9540, 5.3970)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240843 #274308
analogous
#080943 #240843 #420843
triadic
#240843 #432408 #084324
tetradic
#240843 #430809 #274308 #084342
square
#240843 #430809 #274308 #084342
split-complementary
#240843 #434208 #094308
monochromatic
#0F031B #0F031B #240843 #410F7A #5F15B0

Accessibility & contrast

On white

17.64
#240843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240843
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240843#FFFFFF#000000##FFFFFF
##2408431.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001945
Deuteranopia (green-blind)
#001842
Tritanopia (blue-blind)
#1C1825
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240843;
/* rgb */ color: rgb(36, 8, 67);
/* oklch */ color: oklch(22.5% 0.102 299.4);
Tailwind
colors: {
  custom: {
    50: '#634b78',
    500: '#240843',
    950: '#000000',
  },
}
SCSS
$custom: #240843;
$custom-light: #634b78;
$custom-dark: #000000;
JSON
{
  "hex": "#240843",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 268.475,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2248,
    "c": 0.10194,
    "h": 299.4
  },
  "luminance": 0.00954
}

Semantic roles & 50–950 ramp

primary
#240843
secondary
#568125
accent
#F53399
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240843

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

Preview Lab → · Contrast checker → · Palette generator →

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