#270F46#270F46

#270F46 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.097 H 298.8°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#270F46
RGBrgb(39, 15, 70)
HSLhsl(266, 65%, 17%)
HSVhsv(266, 79%, 27%)
CMYKcmyk(44.3%, 78.6%, 0%, 72.5%)
CIE-LABlab(10.67, 25.63, -29.77)
CIE-LCHlch(10.67, 39.28, 310.73°)
OKLaboklab(24.13% 0.0468 -0.085)
OKLCHoklch(24.13% 0.097 298.8)
XYZxyz(2.1127, 1.2152, 5.9164)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F46 #2E460F
analogous
#0F1346 #270F46 #430F46
triadic
#270F46 #46270F #0F4627
tetradic
#270F46 #460F13 #2E460F #0F4643
square
#270F46 #460F13 #2E460F #0F4643
split-complementary
#270F46 #46430F #13460F
monochromatic
#0E0519 #0E0519 #270F46 #431A78 #5F25AB

Accessibility & contrast

On white

16.89
#270F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#270F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F46
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F46#FFFFFF#000000##FFFFFF
##270F461.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#001C45
Tritanopia (blue-blind)
#201C29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #270f46;
/* rgb */ color: rgb(39, 15, 70);
/* oklch */ color: oklch(24.1% 0.097 298.8);
Tailwind
colors: {
  custom: {
    50: '#654f7a',
    500: '#270f46',
    950: '#000000',
  },
}
SCSS
$custom: #270f46;
$custom-light: #654f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#270f46",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 266.182,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24126,
    "c": 0.097,
    "h": 298.8
  },
  "luminance": 0.01215
}

Semantic roles & 50–950 ramp

primary
#270F46
secondary
#5D8030
accent
#E8409F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #270F46

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

Preview Lab → · Contrast checker → · Palette generator →

#270F46 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva