#270941#270941

#270941 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.099 H 303.7°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#270941
RGBrgb(39, 9, 65)
HSLhsl(272, 76%, 15%)
HSVhsv(272, 86%, 25%)
CMYKcmyk(40%, 86.2%, 0%, 74.5%)
CIE-LABlab(9.06, 27.40, -28.86)
CIE-LCHlch(9.06, 39.79, 313.51°)
OKLaboklab(22.84% 0.0548 -0.0823)
OKLCHoklch(22.84% 0.099 303.7)
XYZxyz(1.8883, 1.0084, 5.0952)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270941 #234109
analogous
#0B0941 #270941 #41093F
triadic
#270941 #412709 #094127
tetradic
#270941 #410B09 #234109 #093F41
square
#270941 #410B09 #234109 #093F41
split-complementary
#270941 #3F4109 #09410B
monochromatic
#10041B #10041B #270941 #471077 #6818AD

Accessibility & contrast

On white

17.48
#270941 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270941
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270941#FFFFFF#000000##FFFFFF
##2709411.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#221724
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270941;
/* rgb */ color: rgb(39, 9, 65);
/* oklch */ color: oklch(22.8% 0.099 303.7);
Tailwind
colors: {
  custom: {
    50: '#654c76',
    500: '#270941',
    950: '#000000',
  },
}
SCSS
$custom: #270941;
$custom-light: #654c76;
$custom-dark: #000000;
JSON
{
  "hex": "#270941",
  "rgb": {
    "r": 39,
    "g": 9,
    "b": 65
  },
  "hsl": {
    "h": 272.143,
    "s": 75.676,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22842,
    "c": 0.09883,
    "h": 303.7
  },
  "luminance": 0.01008
}

Semantic roles & 50–950 ramp

primary
#270941
secondary
#507F27
accent
#F2368D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270941

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

Preview Lab → · Contrast checker → · Palette generator →

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