#271B5B#271B5B

#271B5B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.109 H 285.6°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#271B5B
RGBrgb(39, 27, 91)
HSLhsl(251, 54%, 23%)
HSVhsv(251, 70%, 36%)
CMYKcmyk(57.1%, 70.3%, 0%, 64.3%)
CIE-LABlab(15.33, 24.98, -36.55)
CIE-LCHlch(15.33, 44.27, 304.35°)
OKLaboklab(28.08% 0.0293 -0.1049)
OKLCHoklch(28.08% 0.109 285.6)
XYZxyz(3.1164, 1.9704, 10.1116)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B5B #4F5B1B
analogous
#1B2F5B #271B5B #471B5B
triadic
#271B5B #5B271B #1B5B27
tetradic
#271B5B #5B1B2F #4F5B1B #1B5B47
square
#271B5B #5B1B2F #4F5B1B #1B5B47
split-complementary
#271B5B #5B471B #2F5B1B
monochromatic
#0A0718 #130D2C #271B5B #3B298A #4F37B9

Accessibility & contrast

On white

15.06
#271B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#271B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B5B
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B5B#FFFFFF#000000##FFFFFF
##271B5B1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#122B38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271b5b;
/* rgb */ color: rgb(39, 27, 91);
/* oklch */ color: oklch(28.1% 0.109 285.6);
Tailwind
colors: {
  custom: {
    50: '#67588a',
    500: '#271b5b',
    950: '#000000',
  },
}
SCSS
$custom: #271b5b;
$custom-light: #67588a;
$custom-dark: #000000;
JSON
{
  "hex": "#271b5b",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 251.25,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28076,
    "c": 0.10896,
    "h": 285.6
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#271B5B
secondary
#829141
accent
#DE4AC2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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