#270F58#270F58

#270F58 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.9% C 0.120 H 290.4°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#270F58
RGBrgb(39, 15, 88)
HSLhsl(260, 71%, 20%)
HSVhsv(260, 83%, 35%)
CMYKcmyk(55.7%, 83%, 0%, 65.5%)
CIE-LABlab(12.46, 31.15, -39.22)
CIE-LCHlch(12.46, 50.09, 308.46°)
OKLaboklab(25.95% 0.0418 -0.1127)
OKLCHoklch(25.95% 0.12 290.4)
XYZxyz(2.7685, 1.4774, 9.3699)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F58 #40580F
analogous
#0F1B58 #270F58 #4B0F58
triadic
#270F58 #58270F #0F5827
tetradic
#270F58 #580F1B #40580F #0F584B
square
#270F58 #580F1B #40580F #0F584B
split-complementary
#270F58 #584B0F #1B580F
monochromatic
#0C041A #100624 #270F58 #3E188C #5521C1

Accessibility & contrast

On white

16.21
#270F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#270F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F58
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F58#FFFFFF#000000##FFFFFF
##270F581.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#001F57
Tritanopia (blue-blind)
#152433
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #270f58;
/* rgb */ color: rgb(39, 15, 88);
/* oklch */ color: oklch(25.9% 0.120 290.4);
Tailwind
colors: {
  custom: {
    50: '#685088',
    500: '#270f58',
    950: '#000000',
  },
}
SCSS
$custom: #270f58;
$custom-light: #685088;
$custom-dark: #000000;
JSON
{
  "hex": "#270f58",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 259.726,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25945,
    "c": 0.12023,
    "h": 290.4
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#270F58
secondary
#729231
accent
#EE3AB3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #270F58

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

Preview Lab → · Contrast checker → · Palette generator →

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