#271A5E#271A5E

#271A5E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.115 H 285.1°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#271A5E
RGBrgb(39, 26, 94)
HSLhsl(251, 57%, 24%)
HSVhsv(251, 72%, 37%)
CMYKcmyk(58.5%, 72.3%, 0%, 63.1%)
CIE-LABlab(15.37, 26.66, -38.49)
CIE-LCHlch(15.37, 46.82, 304.71°)
OKLaboklab(28.19% 0.0299 -0.1106)
OKLCHoklch(28.19% 0.115 285.1)
XYZxyz(3.2259, 1.9781, 10.7993)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A5E #515E1A
analogous
#1A2F5E #271A5E #491A5E
triadic
#271A5E #5E271A #1A5E27
tetradic
#271A5E #5E1A2F #515E1A #1A5E49
square
#271A5E #5E1A2F #515E1A #1A5E49
split-complementary
#271A5E #5E491A #2F5E1A
monochromatic
#0A0718 #130D2E #271A5E #3B278E #4F35BE

Accessibility & contrast

On white

15.05
#271A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A5E
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A5E#FFFFFF#000000##FFFFFF
##271A5E1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#0F2B39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271a5e;
/* rgb */ color: rgb(39, 26, 94);
/* oklch */ color: oklch(28.2% 0.115 285.1);
Tailwind
colors: {
  custom: {
    50: '#68578c',
    500: '#271a5e',
    950: '#000000',
  },
}
SCSS
$custom: #271a5e;
$custom-light: #68578c;
$custom-dark: #000000;
JSON
{
  "hex": "#271a5e",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 251.471,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28192,
    "c": 0.1146,
    "h": 285.1
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#271A5E
secondary
#849440
accent
#E048C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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