#270B48#270B48

#270B48 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.105 H 298.9°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#270B48
RGBrgb(39, 11, 72)
HSLhsl(268, 73%, 16%)
HSVhsv(268, 85%, 28%)
CMYKcmyk(45.8%, 84.7%, 0%, 71.8%)
CIE-LABlab(10.10, 28.39, -32.11)
CIE-LCHlch(10.10, 42.86, 311.49°)
OKLaboklab(23.78% 0.0506 -0.0918)
OKLCHoklch(23.78% 0.105 298.9)
XYZxyz(2.1258, 1.1385, 6.2374)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270B48 #2C480B
analogous
#0B0E48 #270B48 #460B48
triadic
#270B48 #48270B #0B4827
tetradic
#270B48 #480B0E #2C480B #0B4846
square
#270B48 #480B0E #2C480B #0B4846
split-complementary
#270B48 #48460B #0E480B
monochromatic
#0E041B #0E041B #270B48 #44137D #611BB2

Accessibility & contrast

On white

17.10
#270B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270B48
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270B48#FFFFFF#000000##FFFFFF
##270B481.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270b48;
/* rgb */ color: rgb(39, 11, 72);
/* oklch */ color: oklch(23.8% 0.105 298.9);
Tailwind
colors: {
  custom: {
    50: '#654d7c',
    500: '#270b48',
    950: '#000000',
  },
}
SCSS
$custom: #270b48;
$custom-light: #654d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#270b48",
  "rgb": {
    "r": 39,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 267.541,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23781,
    "c": 0.10484,
    "h": 298.9
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#270B48
secondary
#5B842A
accent
#F0389B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #270B48

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

Preview Lab → · Contrast checker → · Palette generator →

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