#271863#271863

#271863 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.124 H 284.4°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#271863
RGBrgb(39, 24, 99)
HSLhsl(252, 61%, 24%)
HSVhsv(252, 76%, 39%)
CMYKcmyk(60.6%, 75.8%, 0%, 61.2%)
CIE-LABlab(15.41, 29.60, -41.75)
CIE-LCHlch(15.41, 51.18, 305.34°)
OKLaboklab(28.37% 0.0309 -0.1202)
OKLCHoklch(28.37% 0.124 284.4)
XYZxyz(3.4148, 1.9852, 12.0052)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271863 #546318
analogous
#182F63 #271863 #4D1863
triadic
#271863 #632718 #186327
tetradic
#271863 #63182F #546318 #18634D
square
#271863 #63182F #546318 #18634D
split-complementary
#271863 #634D18 #2F6318
monochromatic
#0A0619 #140C32 #271863 #3A2494 #4E30C6

Accessibility & contrast

On white

15.03
#271863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271863
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271863#FFFFFF#000000##FFFFFF
##2718631.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#082C3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271863;
/* rgb */ color: rgb(39, 24, 99);
/* oklch */ color: oklch(28.4% 0.124 284.4);
Tailwind
colors: {
  custom: {
    50: '#695690',
    500: '#271863',
    950: '#000000',
  },
}
SCSS
$custom: #271863;
$custom-light: #695690;
$custom-dark: #000000;
JSON
{
  "hex": "#271863",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 252,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2837,
    "c": 0.12408,
    "h": 284.4
  },
  "luminance": 0.01985
}

Semantic roles & 50–950 ramp

primary
#271863
secondary
#87993E
accent
#E444C4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #271863

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

Preview Lab → · Contrast checker → · Palette generator →

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