#271A5B#271A5B

#271A5B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.110 H 286.0°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#271A5B
RGBrgb(39, 26, 91)
HSLhsl(252, 56%, 23%)
HSVhsv(252, 71%, 36%)
CMYKcmyk(57.1%, 71.4%, 0%, 64.3%)
CIE-LABlab(15.09, 25.64, -36.94)
CIE-LCHlch(15.09, 44.97, 304.76°)
OKLaboklab(27.9% 0.0304 -0.1061)
OKLCHoklch(27.9% 0.11 286)
XYZxyz(3.0939, 1.9253, 10.1041)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A5B #4E5B1A
analogous
#1A2D5B #271A5B #471A5B
triadic
#271A5B #5B271A #1A5B27
tetradic
#271A5B #5B1A2D #4E5B1A #1A5B47
square
#271A5B #5B1A2D #4E5B1A #1A5B47
split-complementary
#271A5B #5B471A #2D5B1A
monochromatic
#0A0718 #130C2B #271A5B #3B288B #5035BA

Accessibility & contrast

On white

15.16
#271A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#271A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A5B
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A5B#FFFFFF#000000##FFFFFF
##271A5B1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#122A38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271a5b;
/* rgb */ color: rgb(39, 26, 91);
/* oklch */ color: oklch(27.9% 0.110 286.0);
Tailwind
colors: {
  custom: {
    50: '#67578a',
    500: '#271a5b',
    950: '#000000',
  },
}
SCSS
$custom: #271a5b;
$custom-light: #67578a;
$custom-dark: #000000;
JSON
{
  "hex": "#271a5b",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 252,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27902,
    "c": 0.11036,
    "h": 286
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#271A5B
secondary
#819140
accent
#DF49C1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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