#271A66#271A66

#271A66 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.126 H 283.1°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#271A66
RGBrgb(39, 26, 102)
HSLhsl(250, 59%, 25%)
HSVhsv(250, 75%, 40%)
CMYKcmyk(61.8%, 74.5%, 0%, 60%)
CIE-LABlab(16.15, 29.39, -42.51)
CIE-LCHlch(16.15, 51.68, 304.66°)
OKLaboklab(28.99% 0.0284 -0.1224)
OKLCHoklch(28.99% 0.126 283.1)
XYZxyz(3.6036, 2.1292, 12.7889)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A66 #59661A
analogous
#1A3366 #271A66 #4D1A66
triadic
#271A66 #66271A #1A6627
tetradic
#271A66 #661A33 #59661A #1A664D
square
#271A66 #661A33 #59661A #1A664D
split-complementary
#271A66 #664D1A #33661A
monochromatic
#090618 #140E35 #271A66 #3A2697 #4C33C8

Accessibility & contrast

On white

14.73
#271A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A66
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A66#FFFFFF#000000##FFFFFF
##271A661.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#032E3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271a66;
/* rgb */ color: rgb(39, 26, 102);
/* oklch */ color: oklch(29.0% 0.126 283.1);
Tailwind
colors: {
  custom: {
    50: '#695892',
    500: '#271a66',
    950: '#000000',
  },
}
SCSS
$custom: #271a66;
$custom-light: #695892;
$custom-dark: #000000;
JSON
{
  "hex": "#271a66",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 250.263,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28991,
    "c": 0.12568,
    "h": 283.1
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#271A66
secondary
#8C9C40
accent
#E345C8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271A66

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

Preview Lab → · Contrast checker → · Palette generator →

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