#271A62#271A62

#271A62 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.6% C 0.120 H 284.1°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#271A62
RGBrgb(39, 26, 98)
HSLhsl(251, 58%, 24%)
HSVhsv(251, 73%, 38%)
CMYKcmyk(60.2%, 73.5%, 0%, 61.6%)
CIE-LABlab(15.76, 28.03, -40.52)
CIE-LCHlch(15.76, 49.27, 304.67°)
OKLaboklab(28.59% 0.0292 -0.1166)
OKLCHoklch(28.59% 0.12 284.1)
XYZxyz(3.4100, 2.0518, 11.7692)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A62 #55621A
analogous
#1A3162 #271A62 #4B1A62
triadic
#271A62 #62271A #1A6227
tetradic
#271A62 #621A31 #55621A #1A624B
square
#271A62 #621A31 #55621A #1A624B
split-complementary
#271A62 #624B1A #31621A
monochromatic
#0A0618 #140D32 #271A62 #3A2792 #4D34C3

Accessibility & contrast

On white

14.89
#271A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A62
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A62#FFFFFF#000000##FFFFFF
##271A621.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#092D3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271a62;
/* rgb */ color: rgb(39, 26, 98);
/* oklch */ color: oklch(28.6% 0.120 284.1);
Tailwind
colors: {
  custom: {
    50: '#69588f',
    500: '#271a62',
    950: '#000000',
  },
}
SCSS
$custom: #271a62;
$custom-light: #69588f;
$custom-dark: #000000;
JSON
{
  "hex": "#271a62",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 250.833,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28587,
    "c": 0.12018,
    "h": 284.1
  },
  "luminance": 0.02052
}

Semantic roles & 50–950 ramp

primary
#271A62
secondary
#889840
accent
#E147C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271A62

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

Preview Lab → · Contrast checker → · Palette generator →

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