#270746#270746

#270746 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.107 H 301.0°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#270746
RGBrgb(39, 7, 70)
HSLhsl(270, 82%, 15%)
HSVhsv(270, 90%, 27%)
CMYKcmyk(44.3%, 90%, 0%, 72.5%)
CIE-LABlab(9.20, 29.82, -32.17)
CIE-LCHlch(9.20, 43.86, 312.83°)
OKLaboklab(23.1% 0.0553 -0.0919)
OKLCHoklch(23.1% 0.107 301)
XYZxyz(2.0179, 1.0255, 5.8848)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270746 #264607
analogous
#070746 #270746 #460745
triadic
#270746 #462707 #074627
tetradic
#270746 #460707 #264607 #074546
square
#270746 #460707 #264607 #074546
split-complementary
#270746 #454607 #074607
monochromatic
#0F031C #0F031C #270746 #460D7E #6512B5

Accessibility & contrast

On white

17.43
#270746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#270746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270746
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270746#FFFFFF#000000##FFFFFF
##2707461.0017.431.2117.43
#FFFFFF17.431.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001945
Tritanopia (blue-blind)
#201927
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #270746;
/* rgb */ color: rgb(39, 7, 70);
/* oklch */ color: oklch(23.1% 0.107 301.0);
Tailwind
colors: {
  custom: {
    50: '#654b7a',
    500: '#270746',
    950: '#000000',
  },
}
SCSS
$custom: #270746;
$custom-light: #654b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#270746",
  "rgb": {
    "r": 39,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 270.476,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23095,
    "c": 0.1073,
    "h": 301
  },
  "luminance": 0.01025
}

Semantic roles & 50–950 ramp

primary
#270746
secondary
#548524
accent
#F83092
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270746

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

Preview Lab → · Contrast checker → · Palette generator →

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