#270F4F#270F4F

#270F4F is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.109 H 294.2°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#270F4F
RGBrgb(39, 15, 79)
HSLhsl(263, 68%, 18%)
HSVhsv(263, 81%, 31%)
CMYKcmyk(50.6%, 81%, 0%, 69%)
CIE-LABlab(11.53, 28.38, -34.61)
CIE-LCHlch(11.53, 44.75, 309.35°)
OKLaboklab(25.01% 0.0446 -0.0992)
OKLCHoklch(25.01% 0.109 294.2)
XYZxyz(2.4184, 1.3374, 7.5263)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F4F #374F0F
analogous
#0F174F #270F4F #470F4F
triadic
#270F4F #4F270F #0F4F27
tetradic
#270F4F #4F0F17 #374F0F #0F4F47
square
#270F4F #4F0F17 #374F0F #0F4F47
split-complementary
#270F4F #4F470F #174F0F
monochromatic
#0D051A #0E051C #270F4F #401982 #5A23B6

Accessibility & contrast

On white

16.57
#270F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#270F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F4F
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F4F#FFFFFF#000000##FFFFFF
##270F4F1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001D4E
Tritanopia (blue-blind)
#1B202E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #270f4f;
/* rgb */ color: rgb(39, 15, 79);
/* oklch */ color: oklch(25.0% 0.109 294.2);
Tailwind
colors: {
  custom: {
    50: '#665081',
    500: '#270f4f',
    950: '#000000',
  },
}
SCSS
$custom: #270f4f;
$custom-light: #665081;
$custom-dark: #000000;
JSON
{
  "hex": "#270f4f",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 262.5,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25008,
    "c": 0.10874,
    "h": 294.2
  },
  "luminance": 0.01337
}

Semantic roles & 50–950 ramp

primary
#270F4F
secondary
#688931
accent
#EB3DAA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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