#271C5A#271C5A

#271C5A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.106 H 285.5°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#271C5A
RGBrgb(39, 28, 90)
HSLhsl(251, 53%, 23%)
HSVhsv(251, 69%, 35%)
CMYKcmyk(56.7%, 68.9%, 0%, 64.7%)
CIE-LABlab(15.49, 23.98, -35.63)
CIE-LCHlch(15.49, 42.95, 303.94°)
OKLaboklab(28.16% 0.0283 -0.1022)
OKLCHoklch(28.16% 0.106 285.5)
XYZxyz(3.0969, 1.9999, 9.8937)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C5A #4F5A1C
analogous
#1C305A #271C5A #461C5A
triadic
#271C5A #5A271C #1C5A27
tetradic
#271C5A #5A1C30 #4F5A1C #1C5A46
square
#271C5A #5A1C30 #4F5A1C #1C5A46
split-complementary
#271C5A #5A461C #305A1C
monochromatic
#0A0717 #130D2B #271C5A #3B2B89 #4F39B7

Accessibility & contrast

On white

15.00
#271C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271C5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C5A
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C5A#FFFFFF#000000##FFFFFF
##271C5A1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#132B38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271c5a;
/* rgb */ color: rgb(39, 28, 90);
/* oklch */ color: oklch(28.2% 0.106 285.5);
Tailwind
colors: {
  custom: {
    50: '#675989',
    500: '#271c5a',
    950: '#000000',
  },
}
SCSS
$custom: #271c5a;
$custom-light: #675989;
$custom-dark: #000000;
JSON
{
  "hex": "#271c5a",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 250.645,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28161,
    "c": 0.10607,
    "h": 285.5
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#271C5A
secondary
#828F42
accent
#DC4CC2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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