#270F52#270F52

#270F52 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.113 H 292.8°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#270F52
RGBrgb(39, 15, 82)
HSLhsl(261, 69%, 19%)
HSVhsv(261, 82%, 32%)
CMYKcmyk(52.4%, 81.7%, 0%, 67.8%)
CIE-LABlab(11.84, 29.30, -36.17)
CIE-LCHlch(11.84, 46.55, 309.01°)
OKLaboklab(25.32% 0.0437 -0.1038)
OKLCHoklch(25.32% 0.113 292.8)
XYZxyz(2.5301, 1.3821, 8.1145)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270F52 #3A520F
analogous
#0F1952 #270F52 #490F52
triadic
#270F52 #52270F #0F5227
tetradic
#270F52 #520F19 #3A520F #0F5249
square
#270F52 #520F19 #3A520F #0F5249
split-complementary
#270F52 #52490F #19520F
monochromatic
#0C051A #0E061E #270F52 #401886 #5822B9

Accessibility & contrast

On white

16.45
#270F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#270F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270F52
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270F52#FFFFFF#000000##FFFFFF
##270F521.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#192130
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #270f52;
/* rgb */ color: rgb(39, 15, 82);
/* oklch */ color: oklch(25.3% 0.113 292.8);
Tailwind
colors: {
  custom: {
    50: '#675083',
    500: '#270f52',
    950: '#000000',
  },
}
SCSS
$custom: #270f52;
$custom-light: #675083;
$custom-dark: #000000;
JSON
{
  "hex": "#270f52",
  "rgb": {
    "r": 39,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 261.493,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25315,
    "c": 0.1126,
    "h": 292.8
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#270F52
secondary
#6B8C31
accent
#EC3CAD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #270F52

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

Preview Lab → · Contrast checker → · Palette generator →

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