#270231#270231

#270231 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.3% C 0.093 H 318.0°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#270231
RGBrgb(39, 2, 49)
HSLhsl(287, 92%, 10%)
HSVhsv(287, 96%, 19%)
CMYKcmyk(20.4%, 95.9%, 0%, 80.8%)
CIE-LABlab(6.29, 26.85, -21.74)
CIE-LCHlch(6.29, 34.54, 321.00°)
OKLaboklab(20.34% 0.0689 -0.0619)
OKLCHoklch(20.34% 0.093 318)
XYZxyz(1.4127, 0.6966, 2.9652)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270231 #0C3102
analogous
#0F0231 #270231 #310224
triadic
#270231 #312702 #023127
tetradic
#270231 #310F02 #0C3102 #022431
square
#270231 #310F02 #0C3102 #022431
split-complementary
#270231 #243102 #02310F
monochromatic
#17011D #17011D #270231 #56046C #8507A7

Accessibility & contrast

On white

18.43
#270231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#270231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270231
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270231#FFFFFF#000000##FFFFFF
##2702311.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#031530
Tritanopia (blue-blind)
#270B19
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #270231;
/* rgb */ color: rgb(39, 2, 49);
/* oklch */ color: oklch(20.3% 0.093 318.0);
Tailwind
colors: {
  custom: {
    50: '#634769',
    500: '#270231',
    950: '#000000',
  },
}
SCSS
$custom: #270231;
$custom-light: #634769;
$custom-dark: #000000;
JSON
{
  "hex": "#270231",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 287.234,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20341,
    "c": 0.09267,
    "h": 318
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#270231
secondary
#2D7519
accent
#FF2956
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050006
muted
#7A777A

Preview Lab

Preview with #270231

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

Preview Lab → · Contrast checker → · Palette generator →

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