#271265#271265

#271265 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.134 H 285.3°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#271265
RGBrgb(39, 18, 101)
HSLhsl(255, 70%, 23%)
HSVhsv(255, 82%, 40%)
CMYKcmyk(61.4%, 82.2%, 0%, 60.4%)
CIE-LABlab(14.42, 33.65, -44.70)
CIE-LCHlch(14.42, 55.95, 306.97°)
OKLaboklab(27.74% 0.0352 -0.1288)
OKLCHoklch(27.74% 0.134 285.3)
XYZxyz(3.4013, 1.8033, 12.4782)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271265 #506512
analogous
#122665 #271265 #501265
triadic
#271265 #652712 #126527
tetradic
#271265 #651226 #506512 #126550
square
#271265 #651226 #506512 #126550
split-complementary
#271265 #655012 #266512
monochromatic
#0A051A #130931 #271265 #3B1B99 #4F25CD

Accessibility & contrast

On white

15.43
#271265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271265
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271265#FFFFFF#000000##FFFFFF
##2712651.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#062A3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271265;
/* rgb */ color: rgb(39, 18, 101);
/* oklch */ color: oklch(27.7% 0.134 285.3);
Tailwind
colors: {
  custom: {
    50: '#6a5392',
    500: '#271265',
    950: '#000000',
  },
}
SCSS
$custom: #271265;
$custom-light: #6a5392;
$custom-dark: #000000;
JSON
{
  "hex": "#271265",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 255.181,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27736,
    "c": 0.1335,
    "h": 285.3
  },
  "luminance": 0.01804
}

Semantic roles & 50–950 ramp

primary
#271265
secondary
#839D36
accent
#ED3BC0
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271265

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

Preview Lab → · Contrast checker → · Palette generator →

#271265 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva