#270742#270742

#270742 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.103 H 303.5°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#270742
RGBrgb(39, 7, 66)
HSLhsl(273, 81%, 14%)
HSVhsv(273, 89%, 26%)
CMYKcmyk(40.9%, 89.4%, 0%, 74.1%)
CIE-LABlab(8.79, 28.72, -30.01)
CIE-LCHlch(8.79, 41.54, 313.75°)
OKLaboklab(22.69% 0.0567 -0.0856)
OKLCHoklch(22.69% 0.103 303.5)
XYZxyz(1.8958, 0.9766, 5.2418)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270742 #224207
analogous
#090742 #270742 #420740
triadic
#270742 #422707 #074227
tetradic
#270742 #420907 #224207 #074042
square
#270742 #420907 #224207 #074042
split-complementary
#270742 #404207 #074209
monochromatic
#10031C #10031C #270742 #480D79 #6813B1

Accessibility & contrast

On white

17.57
#270742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270742
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270742#FFFFFF#000000##FFFFFF
##2707421.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#211725
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270742;
/* rgb */ color: rgb(39, 7, 66);
/* oklch */ color: oklch(22.7% 0.103 303.5);
Tailwind
colors: {
  custom: {
    50: '#654b77',
    500: '#270742',
    950: '#000000',
  },
}
SCSS
$custom: #270742;
$custom-light: #654b77;
$custom-dark: #000000;
JSON
{
  "hex": "#270742",
  "rgb": {
    "r": 39,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 272.542,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22687,
    "c": 0.10269,
    "h": 303.5
  },
  "luminance": 0.00977
}

Semantic roles & 50–950 ramp

primary
#270742
secondary
#4E8124
accent
#F7318B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270742

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

Preview Lab → · Contrast checker → · Palette generator →

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