#240738#240738

#240738 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.090 H 307.3°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#240738
RGBrgb(36, 7, 56)
HSLhsl(276, 78%, 12%)
HSVhsv(276, 88%, 22%)
CMYKcmyk(35.7%, 87.5%, 0%, 78%)
CIE-LABlab(7.34, 25.29, -25.22)
CIE-LCHlch(7.34, 35.71, 315.08°)
OKLaboklab(21.25% 0.0546 -0.0718)
OKLCHoklch(21.25% 0.09 307.3)
XYZxyz(1.5172, 0.8126, 3.8175)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240738 #1B3807
analogous
#0B0738 #240738 #380734
triadic
#240738 #382407 #073824
tetradic
#240738 #380B07 #1B3807 #073438
square
#240738 #380B07 #1B3807 #073438
split-complementary
#240738 #343807 #07380B
monochromatic
#11031B #11031B #240738 #470E6E #6A15A5

Accessibility & contrast

On white

18.06
#240738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240738
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240738#FFFFFF#000000##FFFFFF
##2407381.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001637
Tritanopia (blue-blind)
#21131F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240738;
/* rgb */ color: rgb(36, 7, 56);
/* oklch */ color: oklch(21.2% 0.090 307.3);
Tailwind
colors: {
  custom: {
    50: '#614a6f',
    500: '#240738',
    950: '#000000',
  },
}
SCSS
$custom: #240738;
$custom-light: #614a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#240738",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 275.51,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21246,
    "c": 0.09015,
    "h": 307.3
  },
  "luminance": 0.00813
}

Semantic roles & 50–950 ramp

primary
#240738
secondary
#467823
accent
#F43482
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240738

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

Preview Lab → · Contrast checker → · Palette generator →

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