#240938#240938

#240938 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.087 H 306.6°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#240938
RGBrgb(36, 9, 56)
HSLhsl(274, 72%, 13%)
HSVhsv(274, 84%, 22%)
CMYKcmyk(35.7%, 83.9%, 0%, 78%)
CIE-LABlab(7.73, 24.20, -24.58)
CIE-LCHlch(7.73, 34.49, 314.55°)
OKLaboklab(21.54% 0.0519 -0.0698)
OKLCHoklch(21.54% 0.087 306.6)
XYZxyz(1.5389, 0.8560, 3.8248)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240938 #1D3809
analogous
#0C0938 #240938 #380934
triadic
#240938 #382409 #093824
tetradic
#240938 #380C09 #1D3809 #093438
square
#240938 #380C09 #1D3809 #093438
split-complementary
#240938 #343809 #09380C
monochromatic
#11041A #11041A #240938 #46116D #681AA1

Accessibility & contrast

On white

17.93
#240938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240938
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240938#FFFFFF#000000##FFFFFF
##2409381.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#21141F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240938;
/* rgb */ color: rgb(36, 9, 56);
/* oklch */ color: oklch(21.5% 0.087 306.6);
Tailwind
colors: {
  custom: {
    50: '#614b6f',
    500: '#240938',
    950: '#000000',
  },
}
SCSS
$custom: #240938;
$custom-light: #614b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#240938",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 274.468,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21535,
    "c": 0.08701,
    "h": 306.6
  },
  "luminance": 0.00856
}

Semantic roles & 50–950 ramp

primary
#240938
secondary
#487627
accent
#EF3986
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240938

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

Preview Lab → · Contrast checker → · Palette generator →

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