#270C55#270C55

#270C55 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.3% C 0.120 H 292.3°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#270C55
RGBrgb(39, 12, 85)
HSLhsl(262, 75%, 19%)
HSVhsv(262, 86%, 33%)
CMYKcmyk(54.1%, 85.9%, 0%, 66.7%)
CIE-LABlab(11.62, 31.74, -38.57)
CIE-LCHlch(11.62, 49.95, 309.45°)
OKLaboklab(25.26% 0.0454 -0.1108)
OKLCHoklch(25.26% 0.12 292.3)
XYZxyz(2.6074, 1.3501, 8.7158)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270C55 #3A550C
analogous
#0C1655 #270C55 #4C0C55
triadic
#270C55 #55270C #0C5527
tetradic
#270C55 #550C16 #3A550C #0C554C
square
#270C55 #550C16 #3A550C #0C554C
split-complementary
#270C55 #554C0C #16550C
monochromatic
#0C041B #0E041F #270C55 #40148B #581BC0

Accessibility & contrast

On white

16.54
#270C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270C55
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270C55#FFFFFF#000000##FFFFFF
##270C551.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001D54
Tritanopia (blue-blind)
#182131
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #270c55;
/* rgb */ color: rgb(39, 12, 85);
/* oklch */ color: oklch(25.3% 0.120 292.3);
Tailwind
colors: {
  custom: {
    50: '#674f86',
    500: '#270c55',
    950: '#000000',
  },
}
SCSS
$custom: #270c55;
$custom-light: #674f86;
$custom-dark: #000000;
JSON
{
  "hex": "#270c55",
  "rgb": {
    "r": 39,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 262.192,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25259,
    "c": 0.11971,
    "h": 292.3
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#270C55
secondary
#6B902D
accent
#F236AC
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #270C55

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

Preview Lab → · Contrast checker → · Palette generator →

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