#270F47#270F47

#270F47 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.098 H 298.3°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#270F47
RGBrgb(39, 15, 71)
HSLhsl(266, 65%, 17%)
HSVhsv(266, 79%, 28%)
CMYKcmyk(45.1%, 78.9%, 0%, 72.2%)
CIE-LABlab(10.76, 25.94, -30.32)
CIE-LCHlch(10.76, 39.90, 310.54°)
OKLaboklab(24.22% 0.0466 -0.0866)
OKLCHoklch(24.22% 0.098 298.3)
XYZxyz(2.1446, 1.2279, 6.0840)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F47 #2F470F
analogous
#0F1347 #270F47 #430F47
triadic
#270F47 #47270F #0F4727
tetradic
#270F47 #470F13 #2F470F #0F4743
square
#270F47 #470F13 #2F470F #0F4743
split-complementary
#270F47 #47430F #13470F
monochromatic
#0E0519 #0E0519 #270F47 #431A7A #5F24AC

Accessibility & contrast

On white

16.86
#270F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#270F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F47
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F47#FFFFFF#000000##FFFFFF
##270F471.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001C46
Tritanopia (blue-blind)
#1F1D29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #270f47;
/* rgb */ color: rgb(39, 15, 71);
/* oklch */ color: oklch(24.2% 0.098 298.3);
Tailwind
colors: {
  custom: {
    50: '#654f7b',
    500: '#270f47',
    950: '#000000',
  },
}
SCSS
$custom: #270f47;
$custom-light: #654f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#270f47",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 265.714,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24221,
    "c": 0.09832,
    "h": 298.3
  },
  "luminance": 0.01228
}

Semantic roles & 50–950 ramp

primary
#270F47
secondary
#5F8130
accent
#E840A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #270F47

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

Preview Lab → · Contrast checker → · Palette generator →

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