#270D46#270D46

#270D46 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.100 H 299.5°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#270D46
RGBrgb(39, 13, 70)
HSLhsl(267, 69%, 16%)
HSVhsv(267, 81%, 27%)
CMYKcmyk(44.3%, 81.4%, 0%, 72.5%)
CIE-LABlab(10.27, 26.75, -30.42)
CIE-LCHlch(10.27, 40.51, 311.33°)
OKLaboklab(23.84% 0.0491 -0.0869)
OKLCHoklch(23.84% 0.1 299.5)
XYZxyz(2.0858, 1.1614, 5.9074)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D46 #2C460D
analogous
#0D1046 #270D46 #440D46
triadic
#270D46 #46270D #0D4627
tetradic
#270D46 #460D10 #2C460D #0D4644
square
#270D46 #460D10 #2C460D #0D4644
split-complementary
#270D46 #46440D #10460D
monochromatic
#0E051A #0E051A #270D46 #44177A #6120AD

Accessibility & contrast

On white

17.04
#270D46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#270D46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270D46
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D46#FFFFFF#000000##FFFFFF
##270D461.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001C45
Tritanopia (blue-blind)
#201B28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270d46;
/* rgb */ color: rgb(39, 13, 70);
/* oklch */ color: oklch(23.8% 0.100 299.5);
Tailwind
colors: {
  custom: {
    50: '#654e7a',
    500: '#270d46',
    950: '#000000',
  },
}
SCSS
$custom: #270d46;
$custom-light: #654e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#270d46",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 70
  },
  "hsl": {
    "h": 267.368,
    "s": 68.675,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23842,
    "c": 0.09978,
    "h": 299.5
  },
  "luminance": 0.01161
}

Semantic roles & 50–950 ramp

primary
#270D46
secondary
#5B812D
accent
#EC3C9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #270D46

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

Preview Lab → · Contrast checker → · Palette generator →

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