#271283#271283

#271283 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.170 H 278.5°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#271283
RGBrgb(39, 18, 131)
HSLhsl(251, 76%, 29%)
HSVhsv(251, 86%, 51%)
CMYKcmyk(70.2%, 86.3%, 0%, 48.6%)
CIE-LABlab(17.93, 42.94, -58.29)
CIE-LCHlch(17.93, 72.40, 306.38°)
OKLaboklab(31.2% 0.025 -0.1683)
OKLCHoklch(31.2% 0.17 278.5)
XYZxyz(5.1484, 2.5022, 21.6800)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271283 #6E8312
analogous
#123683 #271283 #601283
triadic
#271283 #832712 #128327
tetradic
#271283 #831236 #6E8312 #128360
square
#271283 #831236 #6E8312 #128360
split-complementary
#271283 #836012 #368312
monochromatic
#08041B #170B4D #271283 #3719B9 #4F2DE2

Accessibility & contrast

On white

13.99
#271283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#271283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271283
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271283#FFFFFF#000000##FFFFFF
##2712831.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003086
Deuteranopia (green-blind)
#002781
Tritanopia (blue-blind)
#00364D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #271283;
/* rgb */ color: rgb(39, 18, 131);
/* oklch */ color: oklch(31.2% 0.170 278.5);
Tailwind
colors: {
  custom: {
    50: '#7155a8',
    500: '#271283',
    950: '#000000',
  },
}
SCSS
$custom: #271283;
$custom-light: #7155a8;
$custom-dark: #000000;
JSON
{
  "hex": "#271283",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 251.15,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31197,
    "c": 0.17019,
    "h": 278.5
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#271283
secondary
#A1B838
accent
#F235CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271283

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

Preview Lab → · Contrast checker → · Palette generator →

#271283 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva