#271A5F#271A5F

#271A5F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.116 H 284.9°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#271A5F
RGBrgb(39, 26, 95)
HSLhsl(251, 57%, 24%)
HSVhsv(251, 73%, 37%)
CMYKcmyk(58.9%, 72.6%, 0%, 62.7%)
CIE-LABlab(15.47, 27.00, -39.00)
CIE-LCHlch(15.47, 47.43, 304.70°)
OKLaboklab(28.29% 0.0297 -0.1121)
OKLCHoklch(28.29% 0.116 284.9)
XYZxyz(3.2710, 1.9962, 11.0372)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A5F #525F1A
analogous
#1A2F5F #271A5F #491A5F
triadic
#271A5F #5F271A #1A5F27
tetradic
#271A5F #5F1A2F #525F1A #1A5F49
square
#271A5F #5F1A2F #525F1A #1A5F49
split-complementary
#271A5F #5F491A #2F5F1A
monochromatic
#0A0718 #130D2F #271A5F #3B278F #4E34BF

Accessibility & contrast

On white

15.01
#271A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A5F
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A5F#FFFFFF#000000##FFFFFF
##271A5F1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#0E2C3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271a5f;
/* rgb */ color: rgb(39, 26, 95);
/* oklch */ color: oklch(28.3% 0.116 284.9);
Tailwind
colors: {
  custom: {
    50: '#68578d',
    500: '#271a5f',
    950: '#000000',
  },
}
SCSS
$custom: #271a5f;
$custom-light: #68578d;
$custom-dark: #000000;
JSON
{
  "hex": "#271a5f",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 251.304,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2829,
    "c": 0.11601,
    "h": 284.9
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#271A5F
secondary
#859540
accent
#E048C4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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