#270D52#270D52

#270D52 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.115 H 293.4°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#270D52
RGBrgb(39, 13, 82)
HSLhsl(263, 73%, 19%)
HSVhsv(263, 84%, 32%)
CMYKcmyk(52.4%, 84.1%, 0%, 67.8%)
CIE-LABlab(11.47, 30.35, -36.77)
CIE-LCHlch(11.47, 47.67, 309.54°)
OKLaboklab(25.06% 0.0456 -0.1055)
OKLCHoklch(25.06% 0.115 293.4)
XYZxyz(2.5032, 1.3283, 8.1055)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270D52 #38520D
analogous
#0D1552 #270D52 #490D52
triadic
#270D52 #52270D #0D5227
tetradic
#270D52 #520D15 #38520D #0D5249
square
#270D52 #520D15 #38520D #0D5249
split-complementary
#270D52 #52490D #15520D
monochromatic
#0D041A #0E051D #270D52 #401587 #591EBC

Accessibility & contrast

On white

16.59
#270D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#270D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270D52
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270D52#FFFFFF#000000##FFFFFF
##270D521.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#1A202F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #270d52;
/* rgb */ color: rgb(39, 13, 82);
/* oklch */ color: oklch(25.1% 0.115 293.4);
Tailwind
colors: {
  custom: {
    50: '#674f83',
    500: '#270d52',
    950: '#000000',
  },
}
SCSS
$custom: #270d52;
$custom-light: #674f83;
$custom-dark: #000000;
JSON
{
  "hex": "#270d52",
  "rgb": {
    "r": 39,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 262.609,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25058,
    "c": 0.11492,
    "h": 293.4
  },
  "luminance": 0.01328
}

Semantic roles & 50–950 ramp

primary
#270D52
secondary
#698D2E
accent
#EF38AA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #270D52

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

Preview Lab → · Contrast checker → · Palette generator →

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