#271674#271674

#271674 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.148 H 280.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#271674
RGBrgb(39, 22, 116)
HSLhsl(251, 68%, 27%)
HSVhsv(251, 81%, 45%)
CMYKcmyk(66.4%, 81%, 0%, 54.5%)
CIE-LABlab(16.82, 36.33, -50.53)
CIE-LCHlch(16.82, 62.24, 305.72°)
OKLaboklab(29.92% 0.0279 -0.1458)
OKLCHoklch(29.92% 0.148 280.8)
XYZxyz(4.2750, 2.2658, 16.7317)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271674 #637416
analogous
#163474 #271674 #561674
triadic
#271674 #742716 #167427
tetradic
#271674 #741634 #637416 #167456
square
#271674 #741634 #637416 #167456
split-complementary
#271674 #745616 #347416
monochromatic
#09051A #160C41 #271674 #3820A7 #4C2DD7

Accessibility & contrast

On white

14.45
#271674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271674
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271674#FFFFFF#000000##FFFFFF
##2716741.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.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: #271674;
/* rgb */ color: rgb(39, 22, 116);
/* oklch */ color: oklch(29.9% 0.148 280.8);
Tailwind
colors: {
  custom: {
    50: '#6d569d',
    500: '#271674',
    950: '#000000',
  },
}
SCSS
$custom: #271674;
$custom-light: #6d569d;
$custom-dark: #000000;
JSON
{
  "hex": "#271674",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 250.851,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29915,
    "c": 0.14847,
    "h": 280.8
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#271674
secondary
#96AA3C
accent
#EB3DCB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271674

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

Preview Lab → · Contrast checker → · Palette generator →

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