#270331#270331

#270331 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.5% C 0.091 H 317.8°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#270331
RGBrgb(39, 3, 49)
HSLhsl(287, 88%, 10%)
HSVhsv(287, 94%, 19%)
CMYKcmyk(20.4%, 93.9%, 0%, 80.8%)
CIE-LABlab(6.49, 26.32, -21.42)
CIE-LCHlch(6.49, 33.93, 320.85°)
OKLaboklab(20.5% 0.0672 -0.0609)
OKLCHoklch(20.5% 0.091 317.8)
XYZxyz(1.4236, 0.7183, 2.9688)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270331 #0D3103
analogous
#100331 #270331 #310324
triadic
#270331 #312703 #033127
tetradic
#270331 #311003 #0D3103 #032431
square
#270331 #311003 #0D3103 #032431
split-complementary
#270331 #243103 #033110
monochromatic
#17021D #17021D #270331 #55076B #830AA4

Accessibility & contrast

On white

18.36
#270331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270331
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270331#FFFFFF#000000##FFFFFF
##2703311.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270331;
/* rgb */ color: rgb(39, 3, 49);
/* oklch */ color: oklch(20.5% 0.091 317.8);
Tailwind
colors: {
  custom: {
    50: '#634869',
    500: '#270331',
    950: '#000000',
  },
}
SCSS
$custom: #270331;
$custom-light: #634869;
$custom-dark: #000000;
JSON
{
  "hex": "#270331",
  "rgb": {
    "r": 39,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 286.957,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.205,
    "c": 0.09068,
    "h": 317.8
  },
  "luminance": 0.00718
}

Semantic roles & 50–950 ramp

primary
#270331
secondary
#2F741B
accent
#FF2958
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050006
muted
#7A777A

Preview Lab

Preview with #270331

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

Preview Lab → · Contrast checker → · Palette generator →

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