#271B61#271B61

#271B61 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.117 H 284.0°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#271B61
RGBrgb(39, 27, 97)
HSLhsl(250, 56%, 24%)
HSVhsv(250, 72%, 38%)
CMYKcmyk(59.8%, 72.2%, 0%, 62%)
CIE-LABlab(15.89, 27.05, -39.63)
CIE-LCHlch(15.89, 47.98, 304.31°)
OKLaboklab(28.65% 0.0284 -0.114)
OKLCHoklch(28.65% 0.117 284)
XYZxyz(3.3856, 2.0781, 11.5296)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B61 #55611B
analogous
#1B3261 #271B61 #4A1B61
triadic
#271B61 #61271B #1B6127
tetradic
#271B61 #611B32 #55611B #1B614A
square
#271B61 #611B32 #55611B #1B614A
split-complementary
#271B61 #614A1B #32611B
monochromatic
#0A0718 #140E31 #271B61 #3A2891 #4D36C1

Accessibility & contrast

On white

14.83
#271B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B61
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B61#FFFFFF#000000##FFFFFF
##271B611.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#0B2D3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271b61;
/* rgb */ color: rgb(39, 27, 97);
/* oklch */ color: oklch(28.7% 0.117 284.0);
Tailwind
colors: {
  custom: {
    50: '#68588f',
    500: '#271b61',
    950: '#000000',
  },
}
SCSS
$custom: #271b61;
$custom-light: #68588f;
$custom-dark: #000000;
JSON
{
  "hex": "#271b61",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 250.286,
    "s": 56.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28654,
    "c": 0.11747,
    "h": 284
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#271B61
secondary
#889741
accent
#E048C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271B61

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

Preview Lab → · Contrast checker → · Palette generator →

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