#240746#240746

#240746 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.107 H 297.9°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#240746
RGBrgb(36, 7, 70)
HSLhsl(268, 82%, 15%)
HSVhsv(268, 90%, 27%)
CMYKcmyk(48.6%, 90%, 0%, 72.5%)
CIE-LABlab(8.73, 29.30, -32.95)
CIE-LCHlch(8.73, 44.10, 311.64°)
OKLaboklab(22.67% 0.05 -0.0944)
OKLCHoklch(22.67% 0.107 297.9)
XYZxyz(1.9087, 0.9692, 5.8797)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240746 #294607
analogous
#070A46 #240746 #430746
triadic
#240746 #462407 #074624
tetradic
#240746 #46070A #294607 #074643
square
#240746 #46070A #294607 #074643
split-complementary
#240746 #464307 #0A4607
monochromatic
#0E031C #0E031C #240746 #410D7E #5D12B5

Accessibility & contrast

On white

17.59
#240746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240746
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240746#FFFFFF#000000##FFFFFF
##2407461.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001845
Tritanopia (blue-blind)
#1B1927
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240746;
/* rgb */ color: rgb(36, 7, 70);
/* oklch */ color: oklch(22.7% 0.107 297.9);
Tailwind
colors: {
  custom: {
    50: '#634b7a',
    500: '#240746',
    950: '#000000',
  },
}
SCSS
$custom: #240746;
$custom-light: #634b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#240746",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 267.619,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22667,
    "c": 0.10681,
    "h": 297.9
  },
  "luminance": 0.00969
}

Semantic roles & 50–950 ramp

primary
#240746
secondary
#588524
accent
#F8309C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #240746

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

Preview Lab → · Contrast checker → · Palette generator →

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