#270641#270641

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

Color values

HEX#270641
RGBrgb(39, 6, 65)
HSLhsl(274, 83%, 14%)
HSVhsv(274, 91%, 25%)
CMYKcmyk(40%, 90.8%, 0%, 74.5%)
CIE-LABlab(8.51, 28.99, -29.76)
CIE-LCHlch(8.51, 41.55, 314.25°)
OKLaboklab(22.46% 0.0582 -0.0849)
OKLCHoklch(22.46% 0.103 304.4)
XYZxyz(1.8557, 0.9432, 5.0843)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270641 #204106
analogous
#090641 #270641 #41063E
triadic
#270641 #412706 #064127
tetradic
#270641 #410906 #204106 #063E41
square
#270641 #410906 #204106 #063E41
split-complementary
#270641 #3E4106 #064109
monochromatic
#11031C #11031C #270641 #490B79 #6A10B1

Accessibility & contrast

On white

17.67
#270641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270641
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270641#FFFFFF#000000##FFFFFF
##2706411.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001840
Tritanopia (blue-blind)
#221624
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270641;
/* rgb */ color: rgb(39, 6, 65);
/* oklch */ color: oklch(22.5% 0.103 304.4);
Tailwind
colors: {
  custom: {
    50: '#654a76',
    500: '#270641',
    950: '#000000',
  },
}
SCSS
$custom: #270641;
$custom-light: #654a76;
$custom-dark: #000000;
JSON
{
  "hex": "#270641",
  "rgb": {
    "r": 39,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 273.559,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22457,
    "c": 0.10292,
    "h": 304.4
  },
  "luminance": 0.00943
}

Semantic roles & 50–950 ramp

primary
#270641
secondary
#4C8122
accent
#F92E88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270641

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

Preview Lab → · Contrast checker → · Palette generator →

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