#240946#240946

#240946 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.104 H 297.4°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#240946
RGBrgb(36, 9, 70)
HSLhsl(267, 77%, 15%)
HSVhsv(267, 87%, 27%)
CMYKcmyk(48.6%, 87.1%, 0%, 72.5%)
CIE-LABlab(9.10, 28.25, -32.36)
CIE-LCHlch(9.10, 42.95, 311.12°)
OKLaboklab(22.92% 0.048 -0.0927)
OKLCHoklch(22.92% 0.104 297.4)
XYZxyz(1.9304, 1.0126, 5.8869)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240946 #2B4609
analogous
#090D46 #240946 #420946
triadic
#240946 #462409 #094624
tetradic
#240946 #46090D #2B4609 #094642
square
#240946 #46090D #2B4609 #094642
split-complementary
#240946 #464209 #0D4609
monochromatic
#0E031B #0E031B #240946 #40107C #5C17B2

Accessibility & contrast

On white

17.46
#240946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240946 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240946
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240946#FFFFFF#000000##FFFFFF
##2409461.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001945
Tritanopia (blue-blind)
#1B1A27
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240946;
/* rgb */ color: rgb(36, 9, 70);
/* oklch */ color: oklch(22.9% 0.104 297.4);
Tailwind
colors: {
  custom: {
    50: '#634c7a',
    500: '#240946',
    950: '#000000',
  },
}
SCSS
$custom: #240946;
$custom-light: #634c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#240946",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 266.557,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2292,
    "c": 0.10435,
    "h": 297.4
  },
  "luminance": 0.01013
}

Semantic roles & 50–950 ramp

primary
#240946
secondary
#5B8427
accent
#F4349F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #240946

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

Preview Lab → · Contrast checker → · Palette generator →

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