#270841#270841

#270841 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.100 H 303.9°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#270841
RGBrgb(39, 8, 65)
HSLhsl(273, 78%, 14%)
HSVhsv(273, 88%, 25%)
CMYKcmyk(40%, 87.7%, 0%, 74.5%)
CIE-LABlab(8.88, 27.92, -29.16)
CIE-LCHlch(8.88, 40.37, 313.75°)
OKLaboklab(22.72% 0.0559 -0.0831)
OKLCHoklch(22.72% 0.1 303.9)
XYZxyz(1.8774, 0.9867, 5.0915)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270841 #224108
analogous
#0B0841 #270841 #41083F
triadic
#270841 #412708 #084127
tetradic
#270841 #410B08 #224108 #083F41
square
#270841 #410B08 #224108 #083F41
split-complementary
#270841 #3F4108 #08410B
monochromatic
#10031B #10031B #270841 #480F77 #6815AE

Accessibility & contrast

On white

17.54
#270841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#270841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270841
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270841#FFFFFF#000000##FFFFFF
##2708411.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001940
Tritanopia (blue-blind)
#221724
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270841;
/* rgb */ color: rgb(39, 8, 65);
/* oklch */ color: oklch(22.7% 0.100 303.9);
Tailwind
colors: {
  custom: {
    50: '#654b76',
    500: '#270841',
    950: '#000000',
  },
}
SCSS
$custom: #270841;
$custom-light: #654b76;
$custom-dark: #000000;
JSON
{
  "hex": "#270841",
  "rgb": {
    "r": 39,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 272.632,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22715,
    "c": 0.10018,
    "h": 303.9
  },
  "luminance": 0.00987
}

Semantic roles & 50–950 ramp

primary
#270841
secondary
#4E7F25
accent
#F5338B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270841

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

Preview Lab → · Contrast checker → · Palette generator →

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