#270F60#270F60

#270F60 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.130 H 287.5°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#270F60
RGBrgb(39, 15, 96)
HSLhsl(258, 73%, 22%)
HSVhsv(258, 84%, 38%)
CMYKcmyk(59.4%, 84.4%, 0%, 62.4%)
CIE-LABlab(13.34, 33.62, -43.16)
CIE-LCHlch(13.34, 54.71, 307.91°)
OKLaboklab(26.82% 0.0391 -0.1242)
OKLCHoklch(26.82% 0.13 287.5)
XYZxyz(3.1182, 1.6173, 11.2119)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F60 #48600F
analogous
#0F2060 #270F60 #500F60
triadic
#270F60 #60270F #0F6027
tetradic
#270F60 #600F20 #48600F #0F6050
square
#270F60 #600F20 #48600F #0F6050
split-complementary
#270F60 #60500F #20600F
monochromatic
#0B041A #11072B #270F60 #3D1795 #5220CA

Accessibility & contrast

On white

15.87
#270F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270F60
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F60#FFFFFF#000000##FFFFFF
##270F601.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002462
Deuteranopia (green-blind)
#00205F
Tritanopia (blue-blind)
#0D2738
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #270f60;
/* rgb */ color: rgb(39, 15, 96);
/* oklch */ color: oklch(26.8% 0.130 287.5);
Tailwind
colors: {
  custom: {
    50: '#69518e',
    500: '#270f60',
    950: '#000000',
  },
}
SCSS
$custom: #270f60;
$custom-light: #69518e;
$custom-dark: #000000;
JSON
{
  "hex": "#270f60",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 257.778,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26815,
    "c": 0.13026,
    "h": 287.5
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#270F60
secondary
#7B9932
accent
#F038B9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #270F60

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

Preview Lab → · Contrast checker → · Palette generator →

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