#271B4E#271B4E

#271B4E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.9% C 0.090 H 289.8°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#271B4E
RGBrgb(39, 27, 78)
HSLhsl(254, 49%, 21%)
HSVhsv(254, 65%, 31%)
CMYKcmyk(50%, 65.4%, 0%, 69.4%)
CIE-LABlab(14.20, 20.53, -29.58)
CIE-LCHlch(14.20, 36.01, 304.77°)
OKLaboklab(26.9% 0.0305 -0.0844)
OKLCHoklch(26.9% 0.09 289.8)
XYZxyz(2.6034, 1.7652, 7.4098)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B4E #424E1B
analogous
#1B284E #271B4E #401B4E
triadic
#271B4E #4E271B #1B4E27
tetradic
#271B4E #4E1B28 #424E1B #1B4E40
square
#271B4E #4E1B28 #424E1B #1B4E40
split-complementary
#271B4E #4E401B #284E1B
monochromatic
#0B0817 #100B21 #271B4E #3E2B7B #543AA9

Accessibility & contrast

On white

15.52
#271B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B4E
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B4E#FFFFFF#000000##FFFFFF
##271B4E1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#1B2731
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271b4e;
/* rgb */ color: rgb(39, 27, 78);
/* oklch */ color: oklch(26.9% 0.090 289.8);
Tailwind
colors: {
  custom: {
    50: '#655880',
    500: '#271b4e',
    950: '#000000',
  },
}
SCSS
$custom: #271b4e;
$custom-light: #655880;
$custom-dark: #000000;
JSON
{
  "hex": "#271b4e",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 254.118,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.269,
    "c": 0.08977,
    "h": 289.8
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#271B4E
secondary
#748441
accent
#D850B8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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