#270F5F#270F5F

#270F5F is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.129 H 287.8°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#270F5F
RGBrgb(39, 15, 95)
HSLhsl(258, 73%, 22%)
HSVhsv(258, 84%, 37%)
CMYKcmyk(58.9%, 84.2%, 0%, 62.7%)
CIE-LABlab(13.22, 33.31, -42.68)
CIE-LCHlch(13.22, 54.14, 307.97°)
OKLaboklab(26.7% 0.0395 -0.1228)
OKLCHoklch(26.7% 0.129 287.8)
XYZxyz(3.0725, 1.5990, 10.9710)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F5F #475F0F
analogous
#0F1F5F #270F5F #4F0F5F
triadic
#270F5F #5F270F #0F5F27
tetradic
#270F5F #5F0F1F #475F0F #0F5F4F
square
#270F5F #5F0F1F #475F0F #0F5F4F
split-complementary
#270F5F #5F4F0F #1F5F0F
monochromatic
#0B041A #11072A #270F5F #3D1794 #5220C9

Accessibility & contrast

On white

15.91
#270F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#270F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F5F
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F5F#FFFFFF#000000##FFFFFF
##270F5F1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#0F2637
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #270f5f;
/* rgb */ color: rgb(39, 15, 95);
/* oklch */ color: oklch(26.7% 0.129 287.8);
Tailwind
colors: {
  custom: {
    50: '#69518d',
    500: '#270f5f',
    950: '#000000',
  },
}
SCSS
$custom: #270f5f;
$custom-light: #69518d;
$custom-dark: #000000;
JSON
{
  "hex": "#270f5f",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 258,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26704,
    "c": 0.12902,
    "h": 287.8
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#270F5F
secondary
#799832
accent
#EF38B9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #270F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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