#270A48#270A48

#270A48 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.106 H 299.1°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#270A48
RGBrgb(39, 10, 72)
HSLhsl(268, 76%, 16%)
HSVhsv(268, 86%, 28%)
CMYKcmyk(45.8%, 86.1%, 0%, 71.8%)
CIE-LABlab(9.93, 28.88, -32.38)
CIE-LCHlch(9.93, 43.39, 311.73°)
OKLaboklab(23.66% 0.0516 -0.0926)
OKLCHoklch(23.66% 0.106 299.1)
XYZxyz(2.1146, 1.1163, 6.2337)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270A48 #2B480A
analogous
#0A0C48 #270A48 #460A48
triadic
#270A48 #48270A #0A4827
tetradic
#270A48 #480A0C #2B480A #0A4846
square
#270A48 #480A0C #2B480A #0A4846
split-complementary
#270A48 #48460A #0C480A
monochromatic
#0F041B #0F041B #270A48 #44117E #6119B3

Accessibility & contrast

On white

17.17
#270A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#270A48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270A48
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270A48#FFFFFF#000000##FFFFFF
##270A481.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #270a48;
/* rgb */ color: rgb(39, 10, 72);
/* oklch */ color: oklch(23.7% 0.106 299.1);
Tailwind
colors: {
  custom: {
    50: '#654d7c',
    500: '#270a48',
    950: '#000000',
  },
}
SCSS
$custom: #270a48;
$custom-light: #654d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#270a48",
  "rgb": {
    "r": 39,
    "g": 10,
    "b": 72
  },
  "hsl": {
    "h": 268.065,
    "s": 75.61,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23661,
    "c": 0.10603,
    "h": 299.1
  },
  "luminance": 0.01116
}

Semantic roles & 50–950 ramp

primary
#270A48
secondary
#5A8529
accent
#F2369A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #270A48

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

Preview Lab → · Contrast checker → · Palette generator →

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