#271A50#271A50

#271A50 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.094 H 289.6°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#271A50
RGBrgb(39, 26, 80)
HSLhsl(254, 51%, 21%)
HSVhsv(254, 68%, 31%)
CMYKcmyk(51.2%, 67.5%, 0%, 68.6%)
CIE-LABlab(14.11, 21.89, -31.10)
CIE-LCHlch(14.11, 38.03, 305.15°)
OKLaboklab(26.89% 0.0317 -0.0889)
OKLCHoklch(26.89% 0.094 289.6)
XYZxyz(2.6537, 1.7492, 7.7857)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A50 #43501A
analogous
#1A2850 #271A50 #421A50
triadic
#271A50 #50271A #1A5027
tetradic
#271A50 #501A28 #43501A #1A5042
square
#271A50 #501A28 #43501A #1A5042
split-complementary
#271A50 #50421A #28501A
monochromatic
#0B0817 #100B22 #271A50 #3E297E #5438AC

Accessibility & contrast

On white

15.56
#271A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A50
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A50#FFFFFF#000000##FFFFFF
##271A501.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#1A2732
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271a50;
/* rgb */ color: rgb(39, 26, 80);
/* oklch */ color: oklch(26.9% 0.094 289.6);
Tailwind
colors: {
  custom: {
    50: '#655782',
    500: '#271a50',
    950: '#000000',
  },
}
SCSS
$custom: #271a50;
$custom-light: #655782;
$custom-dark: #000000;
JSON
{
  "hex": "#271a50",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 254.444,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26886,
    "c": 0.09437,
    "h": 289.6
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#271A50
secondary
#758640
accent
#DA4DB8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271A50

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

Preview Lab → · Contrast checker → · Palette generator →

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