#260540#260540

#260540 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.103 H 304.3°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#260540
RGBrgb(38, 5, 64)
HSLhsl(274, 86%, 14%)
HSVhsv(274, 92%, 25%)
CMYKcmyk(40.6%, 92.2%, 0%, 74.9%)
CIE-LABlab(8.05, 29.10, -29.81)
CIE-LCHlch(8.05, 41.66, 314.31°)
OKLaboklab(22.07% 0.058 -0.0851)
OKLCHoklch(22.07% 0.103 304.3)
XYZxyz(1.7788, 0.8908, 4.9277)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#260540 #1F4005
analogous
#080540 #260540 #40053C
triadic
#260540 #402605 #054026
tetradic
#260540 #400805 #1F4005 #053C40
square
#260540 #400805 #1F4005 #053C40
split-complementary
#260540 #3C4005 #054008
monochromatic
#11021C #11021C #260540 #480979 #690EB2

Accessibility & contrast

On white

17.82
#260540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#260540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #260540
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##260540#FFFFFF#000000##FFFFFF
##2605401.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#211523
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #260540;
/* rgb */ color: rgb(38, 5, 64);
/* oklch */ color: oklch(22.1% 0.103 304.3);
Tailwind
colors: {
  custom: {
    50: '#644975',
    500: '#260540',
    950: '#000000',
  },
}
SCSS
$custom: #260540;
$custom-light: #644975;
$custom-dark: #000000;
JSON
{
  "hex": "#260540",
  "rgb": {
    "r": 38,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 273.559,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22068,
    "c": 0.10297,
    "h": 304.3
  },
  "luminance": 0.00891
}

Semantic roles & 50–950 ramp

primary
#260540
secondary
#4B8120
accent
#FC2C88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #260540

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

Preview Lab → · Contrast checker → · Palette generator →

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