#271D58#271D58

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

Color values

HEX#271D58
RGBrgb(39, 29, 88)
HSLhsl(250, 50%, 23%)
HSVhsv(250, 67%, 35%)
CMYKcmyk(55.7%, 67%, 0%, 65.5%)
CIE-LABlab(15.56, 22.61, -34.16)
CIE-LCHlch(15.56, 40.97, 303.50°)
OKLaboklab(28.16% 0.0274 -0.0979)
OKLCHoklch(28.16% 0.102 285.6)
XYZxyz(3.0370, 2.0145, 9.4594)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D58 #4E581D
analogous
#1D3158 #271D58 #441D58
triadic
#271D58 #58271D #1D5827
tetradic
#271D58 #581D31 #4E581D #1D5844
square
#271D58 #581D31 #4E581D #1D5844
split-complementary
#271D58 #58441D #31581D
monochromatic
#0A0817 #130E2A #271D58 #3B2C86 #503BB4

Accessibility & contrast

On white

14.97
#271D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D58
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D58#FFFFFF#000000##FFFFFF
##271D581.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#142B37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271d58;
/* rgb */ color: rgb(39, 29, 88);
/* oklch */ color: oklch(28.2% 0.102 285.6);
Tailwind
colors: {
  custom: {
    50: '#665988',
    500: '#271d58',
    950: '#000000',
  },
}
SCSS
$custom: #271d58;
$custom-light: #665988;
$custom-dark: #000000;
JSON
{
  "hex": "#271d58",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 88
  },
  "hsl": {
    "h": 250.169,
    "s": 50.427,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28161,
    "c": 0.10166,
    "h": 285.6
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

primary
#271D58
secondary
#818D44
accent
#DA4EC2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271D58

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

Preview Lab → · Contrast checker → · Palette generator →

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