#270F4C#270F4C

#270F4C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.105 H 295.6°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#270F4C
RGBrgb(39, 15, 76)
HSLhsl(264, 67%, 18%)
HSVhsv(264, 80%, 30%)
CMYKcmyk(48.7%, 80.3%, 0%, 70.2%)
CIE-LABlab(11.24, 27.46, -33.02)
CIE-LCHlch(11.24, 42.95, 309.75°)
OKLaboklab(24.71% 0.0454 -0.0945)
OKLCHoklch(24.71% 0.105 295.6)
XYZxyz(2.3117, 1.2947, 6.9642)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F4C #344C0F
analogous
#0F154C #270F4C #450F4C
triadic
#270F4C #4C270F #0F4C27
tetradic
#270F4C #4C0F15 #344C0F #0F4C45
square
#270F4C #4C0F15 #344C0F #0F4C45
split-complementary
#270F4C #4C450F #154C0F
monochromatic
#0D051A #0D051A #270F4C #41197F #5B23B2

Accessibility & contrast

On white

16.68
#270F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#270F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F4C
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F4C#FFFFFF#000000##FFFFFF
##270F4C1.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001D4B
Tritanopia (blue-blind)
#1D1F2C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #270f4c;
/* rgb */ color: rgb(39, 15, 76);
/* oklch */ color: oklch(24.7% 0.105 295.6);
Tailwind
colors: {
  custom: {
    50: '#66507f',
    500: '#270f4c',
    950: '#000000',
  },
}
SCSS
$custom: #270f4c;
$custom-light: #66507f;
$custom-dark: #000000;
JSON
{
  "hex": "#270f4c",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 263.607,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.24707,
    "c": 0.10485,
    "h": 295.6
  },
  "luminance": 0.01295
}

Semantic roles & 50–950 ramp

primary
#270F4C
secondary
#658631
accent
#EA3EA6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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