#271B5C#271B5C

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

Color values

HEX#271B5C
RGBrgb(39, 27, 92)
HSLhsl(251, 55%, 23%)
HSVhsv(251, 71%, 36%)
CMYKcmyk(57.6%, 70.7%, 0%, 63.9%)
CIE-LABlab(15.42, 25.33, -37.07)
CIE-LCHlch(15.42, 44.90, 304.34°)
OKLaboklab(28.17% 0.0292 -0.1065)
OKLCHoklch(28.17% 0.11 285.3)
XYZxyz(3.1598, 1.9877, 10.3403)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B5C #505C1B
analogous
#1B2F5C #271B5C #471B5C
triadic
#271B5C #5C271B #1B5C27
tetradic
#271B5C #5C1B2F #505C1B #1B5C47
square
#271B5C #5C1B2F #505C1B #1B5C47
split-complementary
#271B5C #5C471B #2F5C1B
monochromatic
#0A0718 #130D2D #271B5C #3B298B #4F37BB

Accessibility & contrast

On white

15.03
#271B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B5C
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B5C#FFFFFF#000000##FFFFFF
##271B5C1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#112B38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271b5c;
/* rgb */ color: rgb(39, 27, 92);
/* oklch */ color: oklch(28.2% 0.110 285.3);
Tailwind
colors: {
  custom: {
    50: '#67588b',
    500: '#271b5c',
    950: '#000000',
  },
}
SCSS
$custom: #271b5c;
$custom-light: #67588b;
$custom-dark: #000000;
JSON
{
  "hex": "#271b5c",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 251.077,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28171,
    "c": 0.11038,
    "h": 285.3
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#271B5C
secondary
#839241
accent
#DE4AC3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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