#260C40#260C40

#260C40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.093 H 302.3°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#260C40
RGBrgb(38, 12, 64)
HSLhsl(270, 68%, 15%)
HSVhsv(270, 81%, 25%)
CMYKcmyk(40.6%, 81.2%, 0%, 74.9%)
CIE-LABlab(9.36, 25.32, -27.67)
CIE-LCHlch(9.36, 37.51, 312.46°)
OKLaboklab(22.99% 0.0499 -0.0788)
OKLCHoklch(22.99% 0.093 302.3)
XYZxyz(1.8560, 1.0452, 4.9535)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#260C40 #26400C
analogous
#0C0C40 #260C40 #400C40
triadic
#260C40 #40260C #0C4026
tetradic
#260C40 #400C0C #26400C #0C4040
square
#260C40 #400C0C #26400C #0C4040
split-complementary
#260C40 #40400C #0C400C
monochromatic
#0F051A #0F051A #260C40 #451674 #631FA7

Accessibility & contrast

On white

17.37
#260C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#260C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #260C40
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##260C40#FFFFFF#000000##FFFFFF
##260C401.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#211925
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #260c40;
/* rgb */ color: rgb(38, 12, 64);
/* oklch */ color: oklch(23.0% 0.093 302.3);
Tailwind
colors: {
  custom: {
    50: '#634d75',
    500: '#260c40',
    950: '#000000',
  },
}
SCSS
$custom: #260c40;
$custom-light: #634d75;
$custom-dark: #000000;
JSON
{
  "hex": "#260c40",
  "rgb": {
    "r": 38,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 270,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22992,
    "c": 0.09331,
    "h": 302.3
  },
  "luminance": 0.01045
}

Semantic roles & 50–950 ramp

primary
#260C40
secondary
#547C2C
accent
#EB3D94
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #260C40

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

Preview Lab → · Contrast checker → · Palette generator →

#260C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva