#271C5D#271C5D

#271C5D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.110 H 284.7°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#271C5D
RGBrgb(39, 28, 93)
HSLhsl(250, 54%, 24%)
HSVhsv(250, 70%, 36%)
CMYKcmyk(58.1%, 69.9%, 0%, 63.5%)
CIE-LABlab(15.76, 25.02, -37.19)
CIE-LCHlch(15.76, 44.82, 303.93°)
OKLaboklab(28.44% 0.028 -0.1068)
OKLCHoklch(28.44% 0.11 284.7)
XYZxyz(3.2271, 2.0520, 10.5798)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C5D #525D1C
analogous
#1C315D #271C5D #471C5D
triadic
#271C5D #5D271C #1C5D27
tetradic
#271C5D #5D1C31 #525D1C #1C5D47
square
#271C5D #5D1C31 #525D1C #1C5D47
split-complementary
#271C5D #5D471C #315D1C
monochromatic
#0A0718 #130E2E #271C5D #3B2A8C #4E38BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271C5D#FFFFFF#000000##FFFFFF
##271C5D1.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)
#00295F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#102C39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271c5d;
/* rgb */ color: rgb(39, 28, 93);
/* oklch */ color: oklch(28.4% 0.110 284.7);
Tailwind
colors: {
  custom: {
    50: '#67598c',
    500: '#271c5d',
    950: '#000000',
  },
}
SCSS
$custom: #271c5d;
$custom-light: #67598c;
$custom-dark: #000000;
JSON
{
  "hex": "#271c5d",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 250.154,
    "s": 53.719,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28442,
    "c": 0.11042,
    "h": 284.7
  },
  "luminance": 0.02052
}

Semantic roles & 50–950 ramp

primary
#271C5D
secondary
#859242
accent
#DD4BC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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