#240438#240438

#240438 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.8% C 0.095 H 308.2°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#240438
RGBrgb(36, 4, 56)
HSLhsl(277, 87%, 12%)
HSVhsv(277, 93%, 22%)
CMYKcmyk(35.7%, 92.9%, 0%, 78%)
CIE-LABlab(6.75, 26.92, -26.17)
CIE-LCHlch(6.75, 37.54, 315.81°)
OKLaboklab(20.8% 0.0588 -0.0748)
OKLCHoklch(20.8% 0.095 308.2)
XYZxyz(1.4846, 0.7474, 3.8067)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240438 #183804
analogous
#0A0438 #240438 #380432
triadic
#240438 #382404 #043824
tetradic
#240438 #380A04 #183804 #043238
square
#240438 #380A04 #183804 #043238
split-complementary
#240438 #323804 #04380A
monochromatic
#12021D #12021D #240438 #490871 #6D0CAA

Accessibility & contrast

On white

18.27
#240438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240438 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240438
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240438#FFFFFF#000000##FFFFFF
##2404381.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001537
Tritanopia (blue-blind)
#21111E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240438;
/* rgb */ color: rgb(36, 4, 56);
/* oklch */ color: oklch(20.8% 0.095 308.2);
Tailwind
colors: {
  custom: {
    50: '#62486f',
    500: '#240438',
    950: '#000000',
  },
}
SCSS
$custom: #240438;
$custom-light: #62486f;
$custom-dark: #000000;
JSON
{
  "hex": "#240438",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 56
  },
  "hsl": {
    "h": 276.923,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20798,
    "c": 0.09513,
    "h": 308.2
  },
  "luminance": 0.00747
}

Semantic roles & 50–950 ramp

primary
#240438
secondary
#417A1E
accent
#FD2B7C
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #240438

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

Preview Lab → · Contrast checker → · Palette generator →

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