#271A63#271A63

#271A63 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.7% C 0.122 H 283.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#271A63
RGBrgb(39, 26, 99)
HSLhsl(251, 58%, 25%)
HSVhsv(251, 74%, 39%)
CMYKcmyk(60.6%, 73.7%, 0%, 61.2%)
CIE-LABlab(15.85, 28.37, -41.02)
CIE-LCHlch(15.85, 49.87, 304.67°)
OKLaboklab(28.69% 0.029 -0.118)
OKLCHoklch(28.69% 0.122 283.8)
XYZxyz(3.4575, 2.0708, 12.0195)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A63 #56631A
analogous
#1A3263 #271A63 #4C1A63
triadic
#271A63 #63271A #1A6327
tetradic
#271A63 #631A32 #56631A #1A634C
square
#271A63 #631A32 #56631A #1A634C
split-complementary
#271A63 #634C1A #32631A
monochromatic
#0A0618 #140D33 #271A63 #3A2793 #4D33C4

Accessibility & contrast

On white

14.85
#271A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A63
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A63#FFFFFF#000000##FFFFFF
##271A631.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#082D3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271a63;
/* rgb */ color: rgb(39, 26, 99);
/* oklch */ color: oklch(28.7% 0.122 283.8);
Tailwind
colors: {
  custom: {
    50: '#695890',
    500: '#271a63',
    950: '#000000',
  },
}
SCSS
$custom: #271a63;
$custom-light: #695890;
$custom-dark: #000000;
JSON
{
  "hex": "#271a63",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 250.685,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28687,
    "c": 0.12156,
    "h": 283.8
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#271A63
secondary
#899940
accent
#E246C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #271A63

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

Preview Lab → · Contrast checker → · Palette generator →

#271A63 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva