#270F4D#270F4D

#270F4D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.106 H 295.1°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#270F4D
RGBrgb(39, 15, 77)
HSLhsl(263, 67%, 18%)
HSVhsv(263, 81%, 30%)
CMYKcmyk(49.4%, 80.5%, 0%, 69.8%)
CIE-LABlab(11.34, 27.77, -33.55)
CIE-LCHlch(11.34, 43.55, 309.61°)
OKLaboklab(24.81% 0.0451 -0.0961)
OKLCHoklch(24.81% 0.106 295.1)
XYZxyz(2.3467, 1.3087, 7.1487)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F4D #354D0F
analogous
#0F164D #270F4D #460F4D
triadic
#270F4D #4D270F #0F4D27
tetradic
#270F4D #4D0F16 #354D0F #0F4D46
square
#270F4D #4D0F16 #354D0F #0F4D46
split-complementary
#270F4D #4D460F #164D0F
monochromatic
#0D051A #0D051A #270F4D #411980 #5B23B3

Accessibility & contrast

On white

16.64
#270F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F4D
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F4D#FFFFFF#000000##FFFFFF
##270F4D1.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#1C1F2D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #270f4d;
/* rgb */ color: rgb(39, 15, 77);
/* oklch */ color: oklch(24.8% 0.106 295.1);
Tailwind
colors: {
  custom: {
    50: '#66507f',
    500: '#270f4d',
    950: '#000000',
  },
}
SCSS
$custom: #270f4d;
$custom-light: #66507f;
$custom-dark: #000000;
JSON
{
  "hex": "#270f4d",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 263.226,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24807,
    "c": 0.10615,
    "h": 295.1
  },
  "luminance": 0.01309
}

Semantic roles & 50–950 ramp

primary
#270F4D
secondary
#668731
accent
#EA3EA7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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