#271A64#271A64

#271A64 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.123 H 283.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#271A64
RGBrgb(39, 26, 100)
HSLhsl(251, 59%, 25%)
HSVhsv(251, 74%, 39%)
CMYKcmyk(61%, 74%, 0%, 60.8%)
CIE-LABlab(15.95, 28.71, -41.52)
CIE-LCHlch(15.95, 50.48, 304.66°)
OKLaboklab(28.79% 0.0288 -0.1195)
OKLCHoklch(28.79% 0.123 283.6)
XYZxyz(3.5056, 2.0900, 12.2728)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A64 #57641A
analogous
#1A3264 #271A64 #4C1A64
triadic
#271A64 #64271A #1A6427
tetradic
#271A64 #641A32 #57641A #1A644C
square
#271A64 #641A32 #57641A #1A644C
split-complementary
#271A64 #644C1A #32641A
monochromatic
#090618 #140D33 #271A64 #3A2795 #4D33C5

Accessibility & contrast

On white

14.81
#271A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A64
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A64#FFFFFF#000000##FFFFFF
##271A641.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#062E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271a64;
/* rgb */ color: rgb(39, 26, 100);
/* oklch */ color: oklch(28.8% 0.123 283.6);
Tailwind
colors: {
  custom: {
    50: '#695891',
    500: '#271a64',
    950: '#000000',
  },
}
SCSS
$custom: #271a64;
$custom-light: #695891;
$custom-dark: #000000;
JSON
{
  "hex": "#271a64",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 100
  },
  "hsl": {
    "h": 250.541,
    "s": 58.73,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28788,
    "c": 0.12294,
    "h": 283.6
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#271A64
secondary
#8A9A40
accent
#E246C7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271A64

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

Preview Lab → · Contrast checker → · Palette generator →

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