#270F4B#270F4B

#270F4B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.104 H 296.1°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#270F4B
RGBrgb(39, 15, 75)
HSLhsl(264, 67%, 18%)
HSVhsv(264, 80%, 29%)
CMYKcmyk(48%, 80%, 0%, 70.6%)
CIE-LABlab(11.14, 27.15, -32.49)
CIE-LCHlch(11.14, 42.34, 309.89°)
OKLaboklab(24.61% 0.0456 -0.093)
OKLCHoklch(24.61% 0.104 296.1)
XYZxyz(2.2772, 1.2809, 6.7825)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F4B #334B0F
analogous
#0F154B #270F4B #450F4B
triadic
#270F4B #4B270F #0F4B27
tetradic
#270F4B #4B0F15 #334B0F #0F4B45
square
#270F4B #4B0F15 #334B0F #0F4B45
split-complementary
#270F4B #4B450F #154B0F
monochromatic
#0D051A #0D051A #270F4B #42197E #5C23B1

Accessibility & contrast

On white

16.72
#270F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F4B
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F4B#FFFFFF#000000##FFFFFF
##270F4B1.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001D4A
Tritanopia (blue-blind)
#1D1E2C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #270f4b;
/* rgb */ color: rgb(39, 15, 75);
/* oklch */ color: oklch(24.6% 0.104 296.1);
Tailwind
colors: {
  custom: {
    50: '#65507e',
    500: '#270f4b',
    950: '#000000',
  },
}
SCSS
$custom: #270f4b;
$custom-light: #65507e;
$custom-dark: #000000;
JSON
{
  "hex": "#270f4b",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 264,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24609,
    "c": 0.10355,
    "h": 296.1
  },
  "luminance": 0.01281
}

Semantic roles & 50–950 ramp

primary
#270F4B
secondary
#638530
accent
#EA3EA5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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