#270844#270844

#270844 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.104 H 302.0°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#270844
RGBrgb(39, 8, 68)
HSLhsl(271, 79%, 15%)
HSVhsv(271, 88%, 27%)
CMYKcmyk(42.6%, 88.2%, 0%, 73.3%)
CIE-LABlab(9.18, 28.75, -30.80)
CIE-LCHlch(9.18, 42.13, 313.03°)
OKLaboklab(23.01% 0.055 -0.0879)
OKLCHoklch(23.01% 0.104 302)
XYZxyz(1.9667, 1.0223, 5.5614)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270844 #254408
analogous
#090844 #270844 #440843
triadic
#270844 #442708 #084427
tetradic
#270844 #440908 #254408 #084344
square
#270844 #440908 #254408 #084344
split-complementary
#270844 #434408 #084409
monochromatic
#10031B #10031B #270844 #460E7B #6615B2

Accessibility & contrast

On white

17.44
#270844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270844
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270844#FFFFFF#000000##FFFFFF
##2708441.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001946
Deuteranopia (green-blind)
#001A43
Tritanopia (blue-blind)
#211826
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270844;
/* rgb */ color: rgb(39, 8, 68);
/* oklch */ color: oklch(23.0% 0.104 302.0);
Tailwind
colors: {
  custom: {
    50: '#654b78',
    500: '#270844',
    950: '#000000',
  },
}
SCSS
$custom: #270844;
$custom-light: #654b78;
$custom-dark: #000000;
JSON
{
  "hex": "#270844",
  "rgb": {
    "r": 39,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 271,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23014,
    "c": 0.1037,
    "h": 302
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#270844
secondary
#528226
accent
#F53291
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270844

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

Preview Lab → · Contrast checker → · Palette generator →

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