#270F54#270F54

#270F54 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.115 H 292.0°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#270F54
RGBrgb(39, 15, 84)
HSLhsl(261, 70%, 19%)
HSVhsv(261, 82%, 33%)
CMYKcmyk(53.6%, 82.1%, 0%, 67.1%)
CIE-LABlab(12.04, 29.92, -37.20)
CIE-LCHlch(12.04, 47.73, 308.81°)
OKLaboklab(25.52% 0.0431 -0.1068)
OKLCHoklch(25.52% 0.115 292)
XYZxyz(2.6073, 1.4130, 8.5211)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F54 #3C540F
analogous
#0F1954 #270F54 #4A0F54
triadic
#270F54 #54270F #0F5427
tetradic
#270F54 #540F19 #3C540F #0F544A
square
#270F54 #540F19 #3C540F #0F544A
split-complementary
#270F54 #544A0F #19540F
monochromatic
#0C051A #0F0620 #270F54 #3F1888 #5722BC

Accessibility & contrast

On white

16.37
#270F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#270F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F54
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F54#FFFFFF#000000##FFFFFF
##270F541.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#001E53
Tritanopia (blue-blind)
#182231
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #270f54;
/* rgb */ color: rgb(39, 15, 84);
/* oklch */ color: oklch(25.5% 0.115 292.0);
Tailwind
colors: {
  custom: {
    50: '#675085',
    500: '#270f54',
    950: '#000000',
  },
}
SCSS
$custom: #270f54;
$custom-light: #675085;
$custom-dark: #000000;
JSON
{
  "hex": "#270f54",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 260.87,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25522,
    "c": 0.11515,
    "h": 292
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#270F54
secondary
#6E8E31
accent
#ED3BAF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #270F54

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

Preview Lab → · Contrast checker → · Palette generator →

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