#271A65#271A65

#271A65 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.124 H 283.3°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#271A65
RGBrgb(39, 26, 101)
HSLhsl(250, 59%, 25%)
HSVhsv(250, 74%, 40%)
CMYKcmyk(61.4%, 74.3%, 0%, 60.4%)
CIE-LABlab(16.05, 29.05, -42.02)
CIE-LCHlch(16.05, 51.08, 304.66°)
OKLaboklab(28.89% 0.0286 -0.121)
OKLCHoklch(28.89% 0.124 283.3)
XYZxyz(3.5543, 2.1095, 12.5293)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A65 #58651A
analogous
#1A3365 #271A65 #4D1A65
triadic
#271A65 #65271A #1A6527
tetradic
#271A65 #651A33 #58651A #1A654D
square
#271A65 #651A33 #58651A #1A654D
split-complementary
#271A65 #654D1A #33651A
monochromatic
#090618 #140D34 #271A65 #3A2796 #4D33C6

Accessibility & contrast

On white

14.77
#271A65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271A65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A65
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A65#FFFFFF#000000##FFFFFF
##271A651.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#052E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271a65;
/* rgb */ color: rgb(39, 26, 101);
/* oklch */ color: oklch(28.9% 0.124 283.3);
Tailwind
colors: {
  custom: {
    50: '#695892',
    500: '#271a65',
    950: '#000000',
  },
}
SCSS
$custom: #271a65;
$custom-light: #695892;
$custom-dark: #000000;
JSON
{
  "hex": "#271a65",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 101
  },
  "hsl": {
    "h": 250.4,
    "s": 59.055,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28889,
    "c": 0.12432,
    "h": 283.3
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#271A65
secondary
#8B9B40
accent
#E246C7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271A65

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

Preview Lab → · Contrast checker → · Palette generator →

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