#271774#271774

#271774 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.147 H 280.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#271774
RGBrgb(39, 23, 116)
HSLhsl(250, 67%, 27%)
HSVhsv(250, 80%, 45%)
CMYKcmyk(66.4%, 80.2%, 0%, 54.5%)
CIE-LABlab(17.01, 35.79, -50.22)
CIE-LCHlch(17.01, 61.67, 305.48°)
OKLaboklab(30.05% 0.0272 -0.1449)
OKLCHoklch(30.05% 0.147 280.6)
XYZxyz(4.2945, 2.3048, 16.7382)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271774 #647417
analogous
#173574 #271774 #561774
triadic
#271774 #742717 #177427
tetradic
#271774 #741735 #647417 #177456
square
#271774 #741735 #647417 #177456
split-complementary
#271774 #745617 #357417
monochromatic
#09051A #160D41 #271774 #3821A7 #4C30D6

Accessibility & contrast

On white

14.37
#271774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271774
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271774#FFFFFF#000000##FFFFFF
##2717741.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271774;
/* rgb */ color: rgb(39, 23, 116);
/* oklch */ color: oklch(30.0% 0.147 280.6);
Tailwind
colors: {
  custom: {
    50: '#6d579d',
    500: '#271774',
    950: '#000000',
  },
}
SCSS
$custom: #271774;
$custom-light: #6d579d;
$custom-dark: #000000;
JSON
{
  "hex": "#271774",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 250.323,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30045,
    "c": 0.14747,
    "h": 280.6
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#271774
secondary
#97A93D
accent
#EA3ECC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271774

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

Preview Lab → · Contrast checker → · Palette generator →

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