#271B58#271B58

#271B58 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.105 H 286.5°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#271B58
RGBrgb(39, 27, 88)
HSLhsl(252, 53%, 23%)
HSVhsv(252, 69%, 35%)
CMYKcmyk(55.7%, 69.3%, 0%, 65.5%)
CIE-LABlab(15.06, 23.95, -34.98)
CIE-LCHlch(15.06, 42.40, 304.40°)
OKLaboklab(27.8% 0.0297 -0.1003)
OKLCHoklch(27.8% 0.105 286.5)
XYZxyz(2.9896, 1.9196, 9.4436)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B58 #4C581B
analogous
#1B2E58 #271B58 #451B58
triadic
#271B58 #58271B #1B5827
tetradic
#271B58 #581B2E #4C581B #1B5845
square
#271B58 #581B2E #4C581B #1B5845
split-complementary
#271B58 #58451B #2E581B
monochromatic
#0A0717 #120D29 #271B58 #3C2987 #5138B6

Accessibility & contrast

On white

15.17
#271B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271B58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B58
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B58#FFFFFF#000000##FFFFFF
##271B581.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#142A36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271b58;
/* rgb */ color: rgb(39, 27, 88);
/* oklch */ color: oklch(27.8% 0.105 286.5);
Tailwind
colors: {
  custom: {
    50: '#675888',
    500: '#271b58',
    950: '#000000',
  },
}
SCSS
$custom: #271b58;
$custom-light: #675888;
$custom-dark: #000000;
JSON
{
  "hex": "#271b58",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 251.803,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27795,
    "c": 0.10462,
    "h": 286.5
  },
  "luminance": 0.0192
}

Semantic roles & 50–950 ramp

primary
#271B58
secondary
#7F8E41
accent
#DC4BC0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271B58

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

Preview Lab → · Contrast checker → · Palette generator →

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