#271B63#271B63

#271B63 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.120 H 283.5°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#271B63
RGBrgb(39, 27, 99)
HSLhsl(250, 57%, 25%)
HSVhsv(250, 73%, 39%)
CMYKcmyk(60.6%, 72.7%, 0%, 61.2%)
CIE-LABlab(16.08, 27.74, -40.64)
CIE-LCHlch(16.08, 49.21, 304.31°)
OKLaboklab(28.85% 0.0281 -0.1169)
OKLCHoklch(28.85% 0.12 283.5)
XYZxyz(3.4801, 2.1158, 12.0270)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B63 #57631B
analogous
#1B3363 #271B63 #4B1B63
triadic
#271B63 #63271B #1B6327
tetradic
#271B63 #631B33 #57631B #1B634B
square
#271B63 #631B33 #57631B #1B634B
split-complementary
#271B63 #634B1B #33631B
monochromatic
#090718 #140E33 #271B63 #3A2893 #4D35C3

Accessibility & contrast

On white

14.76
#271B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B63
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B63#FFFFFF#000000##FFFFFF
##271B631.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#082E3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271b63;
/* rgb */ color: rgb(39, 27, 99);
/* oklch */ color: oklch(28.9% 0.120 283.5);
Tailwind
colors: {
  custom: {
    50: '#695890',
    500: '#271b63',
    950: '#000000',
  },
}
SCSS
$custom: #271b63;
$custom-light: #695890;
$custom-dark: #000000;
JSON
{
  "hex": "#271b63",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 250,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28852,
    "c": 0.12027,
    "h": 283.5
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#271B63
secondary
#8A9841
accent
#E047C7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #271B63

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

Preview Lab → · Contrast checker → · Palette generator →

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