#271A5C#271A5C

#271A5C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.112 H 285.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#271A5C
RGBrgb(39, 26, 92)
HSLhsl(252, 56%, 23%)
HSVhsv(252, 72%, 36%)
CMYKcmyk(57.6%, 71.7%, 0%, 63.9%)
CIE-LABlab(15.18, 25.98, -37.46)
CIE-LCHlch(15.18, 45.59, 304.74°)
OKLaboklab(28% 0.0302 -0.1076)
OKLCHoklch(28% 0.112 285.7)
XYZxyz(3.1373, 1.9427, 10.3328)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A5C #4F5C1A
analogous
#1A2E5C #271A5C #481A5C
triadic
#271A5C #5C271A #1A5C27
tetradic
#271A5C #5C1A2E #4F5C1A #1A5C48
square
#271A5C #5C1A2E #4F5C1A #1A5C48
split-complementary
#271A5C #5C481A #2E5C1A
monochromatic
#0A0718 #130D2C #271A5C #3B278C #4F35BB

Accessibility & contrast

On white

15.12
#271A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A5C
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A5C#FFFFFF#000000##FFFFFF
##271A5C1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271a5c;
/* rgb */ color: rgb(39, 26, 92);
/* oklch */ color: oklch(28.0% 0.112 285.7);
Tailwind
colors: {
  custom: {
    50: '#67578b',
    500: '#271a5c',
    950: '#000000',
  },
}
SCSS
$custom: #271a5c;
$custom-light: #67578b;
$custom-dark: #000000;
JSON
{
  "hex": "#271a5c",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 251.818,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27998,
    "c": 0.11178,
    "h": 285.7
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#271A5C
secondary
#829240
accent
#DF49C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #271A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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