#270440#270440

#270440 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.105 H 305.6°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#270440
RGBrgb(39, 4, 64)
HSLhsl(275, 88%, 13%)
HSVhsv(275, 94%, 25%)
CMYKcmyk(39.1%, 93.8%, 0%, 74.9%)
CIE-LABlab(8.02, 29.85, -29.84)
CIE-LCHlch(8.02, 42.21, 315.01°)
OKLaboklab(22.09% 0.061 -0.0851)
OKLCHoklch(22.09% 0.105 305.6)
XYZxyz(1.8053, 0.8883, 4.9259)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270440 #1D4004
analogous
#090440 #270440 #40043B
triadic
#270440 #402704 #044027
tetradic
#270440 #400904 #1D4004 #043B40
square
#270440 #400904 #1D4004 #043B40
split-complementary
#270440 #3B4004 #044009
monochromatic
#12021D #12021D #270440 #4A087A #6D0BB3

Accessibility & contrast

On white

17.83
#270440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270440
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270440#FFFFFF#000000##FFFFFF
##2704401.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#221423
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270440;
/* rgb */ color: rgb(39, 4, 64);
/* oklch */ color: oklch(22.1% 0.105 305.6);
Tailwind
colors: {
  custom: {
    50: '#654975',
    500: '#270440',
    950: '#000000',
  },
}
SCSS
$custom: #270440;
$custom-light: #654975;
$custom-dark: #000000;
JSON
{
  "hex": "#270440",
  "rgb": {
    "r": 39,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 275,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22089,
    "c": 0.1047,
    "h": 305.6
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#270440
secondary
#48811F
accent
#FE2982
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270440

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

Preview Lab → · Contrast checker → · Palette generator →

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