#271A5D#271A5D

#271A5D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.113 H 285.4°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#271A5D
RGBrgb(39, 26, 93)
HSLhsl(252, 56%, 23%)
HSVhsv(252, 72%, 36%)
CMYKcmyk(58.1%, 72%, 0%, 63.5%)
CIE-LABlab(15.28, 26.32, -37.98)
CIE-LCHlch(15.28, 46.20, 304.72°)
OKLaboklab(28.1% 0.0301 -0.1091)
OKLCHoklch(28.1% 0.113 285.4)
XYZxyz(3.1813, 1.9603, 10.5645)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A5D #505D1A
analogous
#1A2E5D #271A5D #481A5D
triadic
#271A5D #5D271A #1A5D27
tetradic
#271A5D #5D1A2E #505D1A #1A5D48
square
#271A5D #5D1A2E #505D1A #1A5D48
split-complementary
#271A5D #5D481A #2E5D1A
monochromatic
#0A0718 #130D2D #271A5D #3B278D #4F35BD

Accessibility & contrast

On white

15.09
#271A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#271A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A5D
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A5D#FFFFFF#000000##FFFFFF
##271A5D1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#102B39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271a5d;
/* rgb */ color: rgb(39, 26, 93);
/* oklch */ color: oklch(28.1% 0.113 285.4);
Tailwind
colors: {
  custom: {
    50: '#68578c',
    500: '#271a5d',
    950: '#000000',
  },
}
SCSS
$custom: #271a5d;
$custom-light: #68578c;
$custom-dark: #000000;
JSON
{
  "hex": "#271a5d",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 251.642,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28095,
    "c": 0.11319,
    "h": 285.4
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#271A5D
secondary
#839340
accent
#E048C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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