#271759#271759

#271759 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.112 H 287.7°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#271759
RGBrgb(39, 23, 89)
HSLhsl(255, 59%, 22%)
HSVhsv(255, 74%, 35%)
CMYKcmyk(56.2%, 74.2%, 0%, 65.1%)
CIE-LABlab(14.20, 26.87, -37.05)
CIE-LCHlch(14.20, 45.76, 305.95°)
OKLaboklab(27.21% 0.0339 -0.1064)
OKLCHoklch(27.21% 0.112 287.7)
XYZxyz(2.9457, 1.7653, 9.6348)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271759 #495917
analogous
#172859 #271759 #481759
triadic
#271759 #592717 #175927
tetradic
#271759 #591728 #495917 #175948
square
#271759 #591728 #495917 #175948
split-complementary
#271759 #594817 #285917
monochromatic
#0B0618 #120A28 #271759 #3C248A #5230BA

Accessibility & contrast

On white

15.52
#271759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271759
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271759#FFFFFF#000000##FFFFFF
##2717591.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#142836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271759;
/* rgb */ color: rgb(39, 23, 89);
/* oklch */ color: oklch(27.2% 0.112 287.7);
Tailwind
colors: {
  custom: {
    50: '#675589',
    500: '#271759',
    950: '#000000',
  },
}
SCSS
$custom: #271759;
$custom-light: #675589;
$custom-dark: #000000;
JSON
{
  "hex": "#271759",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 254.545,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27207,
    "c": 0.11167,
    "h": 287.7
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#271759
secondary
#7C903C
accent
#E246BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271759

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

Preview Lab → · Contrast checker → · Palette generator →

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