#270541#270541

#270541 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.104 H 304.7°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#270541
RGBrgb(39, 5, 65)
HSLhsl(274, 86%, 14%)
HSVhsv(274, 92%, 25%)
CMYKcmyk(40%, 92.3%, 0%, 74.5%)
CIE-LABlab(8.32, 29.55, -30.07)
CIE-LCHlch(8.32, 42.16, 314.50°)
OKLaboklab(22.33% 0.0594 -0.0858)
OKLCHoklch(22.33% 0.104 304.7)
XYZxyz(1.8449, 0.9215, 5.0807)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270541 #1F4105
analogous
#090541 #270541 #41053D
triadic
#270541 #412705 #054127
tetradic
#270541 #410905 #1F4105 #053D41
square
#270541 #410905 #1F4105 #053D41
split-complementary
#270541 #3D4105 #054109
monochromatic
#11021C #11021C #270541 #49097A #6B0EB3

Accessibility & contrast

On white

17.73
#270541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270541
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270541#FFFFFF#000000##FFFFFF
##2705411.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001840
Tritanopia (blue-blind)
#221523
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270541;
/* rgb */ color: rgb(39, 5, 65);
/* oklch */ color: oklch(22.3% 0.104 304.7);
Tailwind
colors: {
  custom: {
    50: '#654a76',
    500: '#270541',
    950: '#000000',
  },
}
SCSS
$custom: #270541;
$custom-light: #654a76;
$custom-dark: #000000;
JSON
{
  "hex": "#270541",
  "rgb": {
    "r": 39,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 274,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22325,
    "c": 0.10434,
    "h": 304.7
  },
  "luminance": 0.00922
}

Semantic roles & 50–950 ramp

primary
#270541
secondary
#4A8120
accent
#FC2C86
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270541

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

Preview Lab → · Contrast checker → · Palette generator →

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