#270D48#270D48

#270D48 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.102 H 298.3°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#270D48
RGBrgb(39, 13, 72)
HSLhsl(266, 69%, 17%)
HSVhsv(266, 82%, 28%)
CMYKcmyk(45.8%, 81.9%, 0%, 71.8%)
CIE-LABlab(10.46, 27.35, -31.51)
CIE-LCHlch(10.46, 41.72, 310.96°)
OKLaboklab(24.04% 0.0486 -0.0901)
OKLCHoklch(24.04% 0.102 298.3)
XYZxyz(2.1500, 1.1870, 6.2455)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D48 #2E480D
analogous
#0D1048 #270D48 #450D48
triadic
#270D48 #48270D #0D4827
tetradic
#270D48 #480D10 #2E480D #0D4845
square
#270D48 #480D10 #2E480D #0D4845
split-complementary
#270D48 #48450D #10480D
monochromatic
#0E051A #0E051A #270D48 #43167C #5F20B0

Accessibility & contrast

On white

16.97
#270D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#270D48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270D48
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D48#FFFFFF#000000##FFFFFF
##270D481.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#1F1C29
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #270d48;
/* rgb */ color: rgb(39, 13, 72);
/* oklch */ color: oklch(24.0% 0.102 298.3);
Tailwind
colors: {
  custom: {
    50: '#654e7c',
    500: '#270d48',
    950: '#000000',
  },
}
SCSS
$custom: #270d48;
$custom-light: #654e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#270d48",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 72
  },
  "hsl": {
    "h": 266.441,
    "s": 69.412,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24038,
    "c": 0.10232,
    "h": 298.3
  },
  "luminance": 0.01187
}

Semantic roles & 50–950 ramp

primary
#270D48
secondary
#5D832D
accent
#EC3C9E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #270D48

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

Preview Lab → · Contrast checker → · Palette generator →

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