#240F43#240F43

#240F43 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.093 H 297.2°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#240F43
RGBrgb(36, 15, 67)
HSLhsl(264, 63%, 16%)
HSVhsv(264, 78%, 26%)
CMYKcmyk(46.3%, 77.6%, 0%, 73.7%)
CIE-LABlab(9.97, 24.03, -28.82)
CIE-LCHlch(9.97, 37.53, 309.82°)
OKLaboklab(23.45% 0.0423 -0.0823)
OKLCHoklch(23.45% 0.093 297.2)
XYZxyz(1.9112, 1.1219, 5.4250)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F43 #2E430F
analogous
#0F1443 #240F43 #3E0F43
triadic
#240F43 #43240F #0F4324
tetradic
#240F43 #430F14 #2E430F #0F433E
square
#240F43 #430F14 #2E430F #0F433E
split-complementary
#240F43 #433E0F #14430F
monochromatic
#0D0619 #0D0619 #240F43 #3F1A75 #5A25A7

Accessibility & contrast

On white

17.15
#240F43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#240F43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F43
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F43#FFFFFF#000000##FFFFFF
##240F431.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C45
Deuteranopia (green-blind)
#001B42
Tritanopia (blue-blind)
#1C1C27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240f43;
/* rgb */ color: rgb(36, 15, 67);
/* oklch */ color: oklch(23.4% 0.093 297.2);
Tailwind
colors: {
  custom: {
    50: '#624f78',
    500: '#240f43',
    950: '#000000',
  },
}
SCSS
$custom: #240f43;
$custom-light: #624f78;
$custom-dark: #000000;
JSON
{
  "hex": "#240f43",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 67
  },
  "hsl": {
    "h": 264.231,
    "s": 63.415,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23445,
    "c": 0.09253,
    "h": 297.2
  },
  "luminance": 0.01122
}

Semantic roles & 50–950 ramp

primary
#240F43
secondary
#5E7D30
accent
#E641A4
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050209
muted
#7A787B

Preview Lab

Preview with #240F43

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

Preview Lab → · Contrast checker → · Palette generator →

#240F43 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva