#270F4E#270F4E

#270F4E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.107 H 294.7°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#270F4E
RGBrgb(39, 15, 78)
HSLhsl(263, 68%, 18%)
HSVhsv(263, 81%, 31%)
CMYKcmyk(50%, 80.8%, 0%, 69.4%)
CIE-LABlab(11.44, 28.07, -34.08)
CIE-LCHlch(11.44, 44.15, 309.48°)
OKLaboklab(24.91% 0.0448 -0.0976)
OKLCHoklch(24.91% 0.107 294.7)
XYZxyz(2.3823, 1.3230, 7.3361)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F4E #364E0F
analogous
#0F164E #270F4E #460F4E
triadic
#270F4E #4E270F #0F4E27
tetradic
#270F4E #4E0F16 #364E0F #0F4E46
square
#270F4E #4E0F16 #364E0F #0F4E46
split-complementary
#270F4E #4E460F #164E0F
monochromatic
#0D051A #0D051B #270F4E #411981 #5A23B5

Accessibility & contrast

On white

16.61
#270F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F4E
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F4E#FFFFFF#000000##FFFFFF
##270F4E1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#1C202D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #270f4e;
/* rgb */ color: rgb(39, 15, 78);
/* oklch */ color: oklch(24.9% 0.107 294.7);
Tailwind
colors: {
  custom: {
    50: '#665080',
    500: '#270f4e',
    950: '#000000',
  },
}
SCSS
$custom: #270f4e;
$custom-light: #665080;
$custom-dark: #000000;
JSON
{
  "hex": "#270f4e",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 262.857,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24907,
    "c": 0.10744,
    "h": 294.7
  },
  "luminance": 0.01323
}

Semantic roles & 50–950 ramp

primary
#270F4E
secondary
#678831
accent
#EB3DA9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #270F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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