#271A5A#271A5A

#271A5A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.109 H 286.3°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#271A5A
RGBrgb(39, 26, 90)
HSLhsl(252, 55%, 23%)
HSVhsv(252, 71%, 35%)
CMYKcmyk(56.7%, 71.1%, 0%, 64.7%)
CIE-LABlab(15.00, 25.29, -36.42)
CIE-LCHlch(15.00, 44.34, 304.78°)
OKLaboklab(27.81% 0.0305 -0.1046)
OKLCHoklch(27.81% 0.109 286.3)
XYZxyz(3.0510, 1.9082, 9.8784)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A5A #4D5A1A
analogous
#1A2D5A #271A5A #471A5A
triadic
#271A5A #5A271A #1A5A27
tetradic
#271A5A #5A1A2D #4D5A1A #1A5A47
square
#271A5A #5A1A2D #4D5A1A #1A5A47
split-complementary
#271A5A #5A471A #2D5A1A
monochromatic
#0A0718 #120C2B #271A5A #3C2889 #5035B9

Accessibility & contrast

On white

15.20
#271A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271A5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A5A
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A5A#FFFFFF#000000##FFFFFF
##271A5A1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#132A37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271a5a;
/* rgb */ color: rgb(39, 26, 90);
/* oklch */ color: oklch(27.8% 0.109 286.3);
Tailwind
colors: {
  custom: {
    50: '#675789',
    500: '#271a5a',
    950: '#000000',
  },
}
SCSS
$custom: #271a5a;
$custom-light: #675789;
$custom-dark: #000000;
JSON
{
  "hex": "#271a5a",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 252.188,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27807,
    "c": 0.10894,
    "h": 286.3
  },
  "luminance": 0.01908
}

Semantic roles & 50–950 ramp

primary
#271A5A
secondary
#809040
accent
#DF49C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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