#270B56#270B56

#270B56 is a dark, vivid violet. Relative luminance 0.013; OKLCH L 25.3% C 0.122 H 292.1°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#270B56
RGBrgb(39, 11, 86)
HSLhsl(262, 77%, 19%)
HSVhsv(262, 87%, 34%)
CMYKcmyk(54.7%, 87.2%, 0%, 66.3%)
CIE-LABlab(11.57, 32.50, -39.34)
CIE-LCHlch(11.57, 51.03, 309.57°)
OKLaboklab(25.26% 0.0458 -0.113)
OKLCHoklch(25.26% 0.122 292.1)
XYZxyz(2.6356, 1.3425, 8.9225)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B56 #3A560B
analogous
#0B1556 #270B56 #4D0B56
triadic
#270B56 #56270B #0B5627
tetradic
#270B56 #560B15 #3A560B #0B564D
square
#270B56 #560B15 #3A560B #0B564D
split-complementary
#270B56 #564D0B #15560B
monochromatic
#0C031B #0E0420 #270B56 #40128C #5819C3

Accessibility & contrast

On white

16.55
#270B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270B56
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B56#FFFFFF#000000##FFFFFF
##270B561.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001D55
Tritanopia (blue-blind)
#172131
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #270b56;
/* rgb */ color: rgb(39, 11, 86);
/* oklch */ color: oklch(25.3% 0.122 292.1);
Tailwind
colors: {
  custom: {
    50: '#684e86',
    500: '#270b56',
    950: '#000000',
  },
}
SCSS
$custom: #270b56;
$custom-light: #684e86;
$custom-dark: #000000;
JSON
{
  "hex": "#270b56",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 262.4,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25257,
    "c": 0.12193,
    "h": 292.1
  },
  "luminance": 0.01343
}

Semantic roles & 50–950 ramp

primary
#270B56
secondary
#6B912B
accent
#F434AC
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #270B56

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

Preview Lab → · Contrast checker → · Palette generator →

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