#271B5E#271B5E

#271B5E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.113 H 284.8°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#271B5E
RGBrgb(39, 27, 94)
HSLhsl(251, 55%, 24%)
HSVhsv(251, 71%, 37%)
CMYKcmyk(58.5%, 71.3%, 0%, 63.1%)
CIE-LABlab(15.61, 26.02, -38.10)
CIE-LCHlch(15.61, 46.14, 304.33°)
OKLaboklab(28.36% 0.0289 -0.1095)
OKLCHoklch(28.36% 0.113 284.8)
XYZxyz(3.2484, 2.0232, 10.8068)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B5E #525E1B
analogous
#1B305E #271B5E #481B5E
triadic
#271B5E #5E271B #1B5E27
tetradic
#271B5E #5E1B30 #525E1B #1B5E48
square
#271B5E #5E1B30 #525E1B #1B5E48
split-complementary
#271B5E #5E481B #305E1B
monochromatic
#0A0718 #130D2E #271B5E #3B298E #4E36BD

Accessibility & contrast

On white

14.95
#271B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B5E
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B5E#FFFFFF#000000##FFFFFF
##271B5E1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#0F2C3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271b5e;
/* rgb */ color: rgb(39, 27, 94);
/* oklch */ color: oklch(28.4% 0.113 284.8);
Tailwind
colors: {
  custom: {
    50: '#68588c',
    500: '#271b5e',
    950: '#000000',
  },
}
SCSS
$custom: #271b5e;
$custom-light: #68588c;
$custom-dark: #000000;
JSON
{
  "hex": "#271b5e",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 250.746,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28363,
    "c": 0.11324,
    "h": 284.8
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#271B5E
secondary
#859441
accent
#DF49C4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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