#271B60#271B60

#271B60 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.116 H 284.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#271B60
RGBrgb(39, 27, 96)
HSLhsl(250, 56%, 24%)
HSVhsv(250, 72%, 38%)
CMYKcmyk(59.4%, 71.9%, 0%, 62.4%)
CIE-LABlab(15.80, 26.71, -39.13)
CIE-LCHlch(15.80, 47.37, 304.32°)
OKLaboklab(28.56% 0.0286 -0.1125)
OKLCHoklch(28.56% 0.116 284.2)
XYZxyz(3.3393, 2.0595, 11.2856)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B60 #54601B
analogous
#1B3260 #271B60 #4A1B60
triadic
#271B60 #60271B #1B6027
tetradic
#271B60 #601B32 #54601B #1B604A
square
#271B60 #601B32 #54601B #1B604A
split-complementary
#271B60 #604A1B #32601B
monochromatic
#0A0718 #140E30 #271B60 #3A2890 #4E36C0

Accessibility & contrast

On white

14.87
#271B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B60
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B60#FFFFFF#000000##FFFFFF
##271B601.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#0C2D3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271b60;
/* rgb */ color: rgb(39, 27, 96);
/* oklch */ color: oklch(28.6% 0.116 284.2);
Tailwind
colors: {
  custom: {
    50: '#68588e',
    500: '#271b60',
    950: '#000000',
  },
}
SCSS
$custom: #271b60;
$custom-light: #68588e;
$custom-dark: #000000;
JSON
{
  "hex": "#271b60",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 250.435,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28557,
    "c": 0.11607,
    "h": 284.2
  },
  "luminance": 0.0206
}

Semantic roles & 50–950 ramp

primary
#271B60
secondary
#879641
accent
#DF48C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271B60

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

Preview Lab → · Contrast checker → · Palette generator →

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