#271B5D#271B5D

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

Color values

HEX#271B5D
RGBrgb(39, 27, 93)
HSLhsl(251, 55%, 24%)
HSVhsv(251, 71%, 36%)
CMYKcmyk(58.1%, 71%, 0%, 63.5%)
CIE-LABlab(15.52, 25.67, -37.59)
CIE-LCHlch(15.52, 45.52, 304.33°)
OKLaboklab(28.27% 0.029 -0.108)
OKLCHoklch(28.27% 0.112 285)
XYZxyz(3.2038, 2.0053, 10.5721)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B5D #515D1B
analogous
#1B305D #271B5D #481B5D
triadic
#271B5D #5D271B #1B5D27
tetradic
#271B5D #5D1B30 #515D1B #1B5D48
square
#271B5D #5D1B30 #515D1B #1B5D48
split-complementary
#271B5D #5D481B #305D1B
monochromatic
#0A0718 #130D2E #271B5D #3B298C #4F37BC

Accessibility & contrast

On white

14.99
#271B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B5D
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B5D#FFFFFF#000000##FFFFFF
##271B5D1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.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: #271b5d;
/* rgb */ color: rgb(39, 27, 93);
/* oklch */ color: oklch(28.3% 0.112 285.0);
Tailwind
colors: {
  custom: {
    50: '#68588c',
    500: '#271b5d',
    950: '#000000',
  },
}
SCSS
$custom: #271b5d;
$custom-light: #68588c;
$custom-dark: #000000;
JSON
{
  "hex": "#271b5d",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 250.909,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28266,
    "c": 0.11181,
    "h": 285
  },
  "luminance": 0.02006
}

Semantic roles & 50–950 ramp

primary
#271B5D
secondary
#849341
accent
#DE49C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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