#270940#270940

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

Color values

HEX#270940
RGBrgb(39, 9, 64)
HSLhsl(273, 75%, 14%)
HSVhsv(273, 86%, 25%)
CMYKcmyk(39.1%, 85.9%, 0%, 74.9%)
CIE-LABlab(8.97, 27.12, -28.31)
CIE-LCHlch(8.97, 39.20, 313.77°)
OKLaboklab(22.75% 0.0551 -0.0806)
OKLCHoklch(22.75% 0.098 304.3)
XYZxyz(1.8596, 0.9969, 4.9439)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270940 #224009
analogous
#0C0940 #270940 #40093E
triadic
#270940 #402709 #094027
tetradic
#270940 #400C09 #224009 #093E40
square
#270940 #400C09 #224009 #093E40
split-complementary
#270940 #3E4009 #09400C
monochromatic
#10041B #10041B #270940 #481176 #6818AB

Accessibility & contrast

On white

17.51
#270940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270940
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270940#FFFFFF#000000##FFFFFF
##2709401.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#221724
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270940;
/* rgb */ color: rgb(39, 9, 64);
/* oklch */ color: oklch(22.7% 0.098 304.3);
Tailwind
colors: {
  custom: {
    50: '#644c75',
    500: '#270940',
    950: '#000000',
  },
}
SCSS
$custom: #270940;
$custom-light: #644c75;
$custom-dark: #000000;
JSON
{
  "hex": "#270940",
  "rgb": {
    "r": 39,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 272.727,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22745,
    "c": 0.09764,
    "h": 304.3
  },
  "luminance": 0.00997
}

Semantic roles & 50–950 ramp

primary
#270940
secondary
#4E7E27
accent
#F2368B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270940

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

Preview Lab → · Contrast checker → · Palette generator →

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