#271C5B#271C5B

#271C5B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.108 H 285.2°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#271C5B
RGBrgb(39, 28, 91)
HSLhsl(250, 53%, 23%)
HSVhsv(250, 69%, 36%)
CMYKcmyk(57.1%, 69.2%, 0%, 64.3%)
CIE-LABlab(15.58, 24.33, -36.15)
CIE-LCHlch(15.58, 43.57, 303.94°)
OKLaboklab(28.25% 0.0282 -0.1038)
OKLCHoklch(28.25% 0.108 285.2)
XYZxyz(3.1397, 2.0170, 10.1194)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C5B #505B1C
analogous
#1C305B #271C5B #461C5B
triadic
#271C5B #5B271C #1C5B27
tetradic
#271C5B #5B1C30 #505B1C #1C5B46
square
#271C5B #5B1C30 #505B1C #1C5B46
split-complementary
#271C5B #5B461C #305B1C
monochromatic
#0A0717 #130E2C #271C5B #3B2A8A #4F39B9

Accessibility & contrast

On white

14.96
#271C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C5B
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C5B#FFFFFF#000000##FFFFFF
##271C5B1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#122B38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271c5b;
/* rgb */ color: rgb(39, 28, 91);
/* oklch */ color: oklch(28.3% 0.108 285.2);
Tailwind
colors: {
  custom: {
    50: '#67598a',
    500: '#271c5b',
    950: '#000000',
  },
}
SCSS
$custom: #271c5b;
$custom-light: #67598a;
$custom-dark: #000000;
JSON
{
  "hex": "#271c5b",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 91
  },
  "hsl": {
    "h": 250.476,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28254,
    "c": 0.10752,
    "h": 285.2
  },
  "luminance": 0.02017
}

Semantic roles & 50–950 ramp

primary
#271C5B
secondary
#839042
accent
#DC4BC3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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