#271475#271475

#271475 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.152 H 280.9°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#271475
RGBrgb(39, 20, 117)
HSLhsl(252, 71%, 27%)
HSVhsv(252, 83%, 46%)
CMYKcmyk(66.7%, 82.9%, 0%, 54.1%)
CIE-LABlab(16.58, 37.68, -51.58)
CIE-LCHlch(16.58, 63.88, 306.15°)
OKLaboklab(29.78% 0.0288 -0.1489)
OKLCHoklch(29.78% 0.152 280.9)
XYZxyz(4.2967, 2.2157, 17.0274)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271475 #627514
analogous
#143175 #271475 #581475
triadic
#271475 #752714 #147527
tetradic
#271475 #751431 #627514 #147558
square
#271475 #751431 #627514 #147558
split-complementary
#271475 #755814 #317514
monochromatic
#09041A #160B41 #271475 #381DA9 #4C29DA

Accessibility & contrast

On white

14.55
#271475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271475 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271475
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271475#FFFFFF#000000##FFFFFF
##2714751.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271475;
/* rgb */ color: rgb(39, 20, 117);
/* oklch */ color: oklch(29.8% 0.152 280.9);
Tailwind
colors: {
  custom: {
    50: '#6d559e',
    500: '#271475',
    950: '#000000',
  },
}
SCSS
$custom: #271475;
$custom-light: #6d559e;
$custom-dark: #000000;
JSON
{
  "hex": "#271475",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 251.753,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29779,
    "c": 0.15161,
    "h": 280.9
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#271475
secondary
#95AB3A
accent
#EE3ACA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271475

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

Preview Lab → · Contrast checker → · Palette generator →

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