#270937#270937

#270937 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.087 H 311.1°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#270937
RGBrgb(39, 9, 55)
HSLhsl(279, 72%, 13%)
HSVhsv(279, 84%, 22%)
CMYKcmyk(29.1%, 83.6%, 0%, 78.4%)
CIE-LABlab(8.15, 24.67, -23.15)
CIE-LCHlch(8.15, 33.83, 316.82°)
OKLaboklab(21.92% 0.0571 -0.0655)
OKLCHoklch(21.92% 0.087 311.1)
XYZxyz(1.6238, 0.9026, 3.7024)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270937 #193709
analogous
#100937 #270937 #370930
triadic
#270937 #372709 #093727
tetradic
#270937 #371009 #193709 #093037
square
#270937 #371009 #193709 #093037
split-complementary
#270937 #303709 #093710
monochromatic
#13041A #13041A #270937 #4C126C #721AA0

Accessibility & contrast

On white

17.79
#270937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270937
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270937#FFFFFF#000000##FFFFFF
##2709371.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001638
Deuteranopia (green-blind)
#041836
Tritanopia (blue-blind)
#25131F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270937;
/* rgb */ color: rgb(39, 9, 55);
/* oklch */ color: oklch(21.9% 0.087 311.1);
Tailwind
colors: {
  custom: {
    50: '#634b6e',
    500: '#270937',
    950: '#000000',
  },
}
SCSS
$custom: #270937;
$custom-light: #634b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#270937",
  "rgb": {
    "r": 39,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 279.13,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21915,
    "c": 0.08685,
    "h": 311.1
  },
  "luminance": 0.00903
}

Semantic roles & 50–950 ramp

primary
#270937
secondary
#427527
accent
#EF3978
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050107
muted
#7A777A

Preview Lab

Preview with #270937

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

Preview Lab → · Contrast checker → · Palette generator →

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