#271C58#271C58

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

Color values

HEX#271C58
RGBrgb(39, 28, 88)
HSLhsl(251, 52%, 23%)
HSVhsv(251, 68%, 35%)
CMYKcmyk(55.7%, 68.2%, 0%, 65.5%)
CIE-LABlab(15.31, 23.29, -34.57)
CIE-LCHlch(15.31, 41.68, 303.96°)
OKLaboklab(27.98% 0.0285 -0.0991)
OKLCHoklch(27.98% 0.103 286.1)
XYZxyz(3.0129, 1.9663, 9.4514)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C58 #4D581C
analogous
#1C2F58 #271C58 #451C58
triadic
#271C58 #58271C #1C5827
tetradic
#271C58 #581C2F #4D581C #1C5845
square
#271C58 #581C2F #4D581C #1C5845
split-complementary
#271C58 #58451C #2F581C
monochromatic
#0A0717 #120D2A #271C58 #3C2B86 #503AB5

Accessibility & contrast

On white

15.07
#271C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C58
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C58#FFFFFF#000000##FFFFFF
##271C581.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271c58;
/* rgb */ color: rgb(39, 28, 88);
/* oklch */ color: oklch(28.0% 0.103 286.1);
Tailwind
colors: {
  custom: {
    50: '#665988',
    500: '#271c58',
    950: '#000000',
  },
}
SCSS
$custom: #271c58;
$custom-light: #665988;
$custom-dark: #000000;
JSON
{
  "hex": "#271c58",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 251,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27976,
    "c": 0.10314,
    "h": 286.1
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#271C58
secondary
#808E42
accent
#DB4DC1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271C58

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

Preview Lab → · Contrast checker → · Palette generator →

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