#240834#240834

#240834 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.084 H 310.2°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#240834
RGBrgb(36, 8, 52)
HSLhsl(278, 73%, 12%)
HSVhsv(278, 85%, 20%)
CMYKcmyk(30.8%, 84.6%, 0%, 79.6%)
CIE-LABlab(7.20, 23.57, -22.53)
CIE-LCHlch(7.20, 32.60, 316.29°)
OKLaboklab(21.02% 0.054 -0.0639)
OKLCHoklch(21.02% 0.084 310.2)
XYZxyz(1.4341, 0.7967, 3.3264)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240834 #183408
analogous
#0E0834 #240834 #34082E
triadic
#240834 #342408 #083424
tetradic
#240834 #340E08 #183408 #082E34
square
#240834 #340E08 #183408 #082E34
split-complementary
#240834 #2E3408 #08340E
monochromatic
#12041B #12041B #240834 #491069 #6D189E

Accessibility & contrast

On white

18.11
#240834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240834
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240834#FFFFFF#000000##FFFFFF
##2408341.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001535
Deuteranopia (green-blind)
#021633
Tritanopia (blue-blind)
#22121D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240834;
/* rgb */ color: rgb(36, 8, 52);
/* oklch */ color: oklch(21.0% 0.084 310.2);
Tailwind
colors: {
  custom: {
    50: '#614a6c',
    500: '#240834',
    950: '#000000',
  },
}
SCSS
$custom: #240834;
$custom-light: #614a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240834",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 52
  },
  "hsl": {
    "h": 278.182,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21024,
    "c": 0.08369,
    "h": 310.2
  },
  "luminance": 0.00797
}

Semantic roles & 50–950 ramp

primary
#240834
secondary
#417325
accent
#F0387B
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240834

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

Preview Lab → · Contrast checker → · Palette generator →

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