#271959#271959

#271959 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.109 H 287.0°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#271959
RGBrgb(39, 25, 89)
HSLhsl(253, 56%, 22%)
HSVhsv(253, 72%, 35%)
CMYKcmyk(56.2%, 71.9%, 0%, 65.1%)
CIE-LABlab(14.67, 25.60, -36.29)
CIE-LCHlch(14.67, 44.41, 305.20°)
OKLaboklab(27.54% 0.0318 -0.1042)
OKLCHoklch(27.54% 0.109 287)
XYZxyz(2.9870, 1.8477, 9.6485)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271959 #4B5919
analogous
#192B59 #271959 #471959
triadic
#271959 #592719 #195927
tetradic
#271959 #59192B #4B5919 #195947
square
#271959 #59192B #4B5919 #195947
split-complementary
#271959 #594719 #2B5919
monochromatic
#0A0718 #120C29 #271959 #3C2689 #5134B9

Accessibility & contrast

On white

15.33
#271959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271959
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271959#FFFFFF#000000##FFFFFF
##2719591.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#142936
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271959;
/* rgb */ color: rgb(39, 25, 89);
/* oklch */ color: oklch(27.5% 0.109 287.0);
Tailwind
colors: {
  custom: {
    50: '#675788',
    500: '#271959',
    950: '#000000',
  },
}
SCSS
$custom: #271959;
$custom-light: #675788;
$custom-dark: #000000;
JSON
{
  "hex": "#271959",
  "rgb": {
    "r": 39,
    "g": 25,
    "b": 89
  },
  "hsl": {
    "h": 253.125,
    "s": 56.14,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27539,
    "c": 0.10892,
    "h": 287
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#271959
secondary
#7E8F3E
accent
#DF48BE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271959

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

Preview Lab → · Contrast checker → · Palette generator →

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