#270741#270741

#270741 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.102 H 304.2°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#270741
RGBrgb(39, 7, 65)
HSLhsl(273, 81%, 14%)
HSVhsv(273, 89%, 25%)
CMYKcmyk(40%, 89.2%, 0%, 74.5%)
CIE-LABlab(8.70, 28.45, -29.46)
CIE-LCHlch(8.70, 40.95, 314.00°)
OKLaboklab(22.59% 0.057 -0.084)
OKLCHoklch(22.59% 0.102 304.2)
XYZxyz(1.8666, 0.9650, 5.0879)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270741 #214107
analogous
#0A0741 #270741 #41073E
triadic
#270741 #412707 #074127
tetradic
#270741 #410A07 #214107 #073E41
square
#270741 #410A07 #214107 #073E41
split-complementary
#270741 #3E4107 #07410A
monochromatic
#11031C #11031C #270741 #480D78 #6913B0

Accessibility & contrast

On white

17.60
#270741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#270741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270741
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270741#FFFFFF#000000##FFFFFF
##2707411.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001940
Tritanopia (blue-blind)
#221624
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270741;
/* rgb */ color: rgb(39, 7, 65);
/* oklch */ color: oklch(22.6% 0.102 304.2);
Tailwind
colors: {
  custom: {
    50: '#654b76',
    500: '#270741',
    950: '#000000',
  },
}
SCSS
$custom: #270741;
$custom-light: #654b76;
$custom-dark: #000000;
JSON
{
  "hex": "#270741",
  "rgb": {
    "r": 39,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 273.103,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22587,
    "c": 0.10154,
    "h": 304.2
  },
  "luminance": 0.00965
}

Semantic roles & 50–950 ramp

primary
#270741
secondary
#4D8024
accent
#F7318A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #270741

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

Preview Lab → · Contrast checker → · Palette generator →

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