#271772#271772

#271772 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.145 H 281.1°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#271772
RGBrgb(39, 23, 114)
HSLhsl(251, 66%, 27%)
HSVhsv(251, 80%, 45%)
CMYKcmyk(65.8%, 79.8%, 0%, 55.3%)
CIE-LABlab(16.79, 35.14, -49.29)
CIE-LCHlch(16.79, 60.54, 305.49°)
OKLaboklab(29.82% 0.0278 -0.1422)
OKLCHoklch(29.82% 0.145 281.1)
XYZxyz(4.1794, 2.2587, 16.1321)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271772 #627217
analogous
#173572 #271772 #551772
triadic
#271772 #722717 #177227
tetradic
#271772 #721735 #627217 #177255
square
#271772 #721735 #627217 #177255
split-complementary
#271772 #725517 #357217
monochromatic
#090519 #160D3F #271772 #3821A5 #4C2ED5

Accessibility & contrast

On white

14.46
#271772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271772
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271772#FFFFFF#000000##FFFFFF
##2717721.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271772;
/* rgb */ color: rgb(39, 23, 114);
/* oklch */ color: oklch(29.8% 0.145 281.1);
Tailwind
colors: {
  custom: {
    50: '#6c579c',
    500: '#271772',
    950: '#000000',
  },
}
SCSS
$custom: #271772;
$custom-light: #6c579c;
$custom-dark: #000000;
JSON
{
  "hex": "#271772",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 250.549,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29824,
    "c": 0.14492,
    "h": 281.1
  },
  "luminance": 0.02259
}

Semantic roles & 50–950 ramp

primary
#271772
secondary
#95A83D
accent
#E93ECB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271772

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

Preview Lab → · Contrast checker → · Palette generator →

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