#271B5A#271B5A

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

Color values

HEX#271B5A
RGBrgb(39, 27, 90)
HSLhsl(251, 54%, 23%)
HSVhsv(251, 70%, 35%)
CMYKcmyk(56.7%, 70%, 0%, 64.7%)
CIE-LABlab(15.24, 24.64, -36.03)
CIE-LCHlch(15.24, 43.65, 304.37°)
OKLaboklab(27.98% 0.0294 -0.1034)
OKLCHoklch(27.98% 0.108 285.9)
XYZxyz(3.0735, 1.9532, 9.8859)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B5A #4E5A1B
analogous
#1B2E5A #271B5A #461B5A
triadic
#271B5A #5A271B #1B5A27
tetradic
#271B5A #5A1B2E #4E5A1B #1B5A46
square
#271B5A #5A1B2E #4E5A1B #1B5A46
split-complementary
#271B5A #5A461B #2E5A1B
monochromatic
#0A0718 #130D2B #271B5A #3B2989 #5037B8

Accessibility & contrast

On white

15.10
#271B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B5A
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B5A#FFFFFF#000000##FFFFFF
##271B5A1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#132B37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271b5a;
/* rgb */ color: rgb(39, 27, 90);
/* oklch */ color: oklch(28.0% 0.108 285.9);
Tailwind
colors: {
  custom: {
    50: '#675889',
    500: '#271b5a',
    950: '#000000',
  },
}
SCSS
$custom: #271b5a;
$custom-light: #675889;
$custom-dark: #000000;
JSON
{
  "hex": "#271b5a",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 251.429,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27982,
    "c": 0.10752,
    "h": 285.9
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#271B5A
secondary
#819041
accent
#DD4BC1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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