#271A68#271A68

#271A68 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.128 H 282.6°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#271A68
RGBrgb(39, 26, 104)
HSLhsl(250, 60%, 25%)
HSVhsv(250, 75%, 41%)
CMYKcmyk(62.5%, 75%, 0%, 59.2%)
CIE-LABlab(16.35, 30.07, -43.50)
CIE-LCHlch(16.35, 52.88, 304.65°)
OKLaboklab(29.2% 0.028 -0.1253)
OKLCHoklch(29.2% 0.128 282.6)
XYZxyz(3.7040, 2.1694, 13.3176)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A68 #5B681A
analogous
#1A3468 #271A68 #4E1A68
triadic
#271A68 #68271A #1A6827
tetradic
#271A68 #681A34 #5B681A #1A684E
square
#271A68 #681A34 #5B681A #1A684E
split-complementary
#271A68 #684E1A #34681A
monochromatic
#090618 #150E37 #271A68 #392699 #4C32CA

Accessibility & contrast

On white

14.64
#271A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A68
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A68#FFFFFF#000000##FFFFFF
##271A681.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271a68;
/* rgb */ color: rgb(39, 26, 104);
/* oklch */ color: oklch(29.2% 0.128 282.6);
Tailwind
colors: {
  custom: {
    50: '#6a5894',
    500: '#271a68',
    950: '#000000',
  },
}
SCSS
$custom: #271a68;
$custom-light: #6a5894;
$custom-dark: #000000;
JSON
{
  "hex": "#271a68",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 250,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29195,
    "c": 0.1284,
    "h": 282.6
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#271A68
secondary
#8E9D40
accent
#E345C9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271A68

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

Preview Lab → · Contrast checker → · Palette generator →

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