#271675#271675

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

Color values

HEX#271675
RGBrgb(39, 22, 117)
HSLhsl(251, 68%, 27%)
HSVhsv(251, 81%, 46%)
CMYKcmyk(66.7%, 81.2%, 0%, 54.1%)
CIE-LABlab(16.94, 36.65, -50.99)
CIE-LCHlch(16.94, 62.80, 305.71°)
OKLaboklab(30.03% 0.0276 -0.1472)
OKLCHoklch(30.03% 0.15 280.6)
XYZxyz(4.3335, 2.2892, 17.0397)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271675 #647516
analogous
#163575 #271675 #571675
triadic
#271675 #752716 #167527
tetradic
#271675 #751635 #647516 #167557
square
#271675 #751635 #647516 #167557
split-complementary
#271675 #755716 #357516
monochromatic
#09051A #160C41 #271675 #3820A9 #4C2ED8

Accessibility & contrast

On white

14.40
#271675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271675
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271675#FFFFFF#000000##FFFFFF
##2716751.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271675;
/* rgb */ color: rgb(39, 22, 117);
/* oklch */ color: oklch(30.0% 0.150 280.6);
Tailwind
colors: {
  custom: {
    50: '#6d569e',
    500: '#271675',
    950: '#000000',
  },
}
SCSS
$custom: #271675;
$custom-light: #6d569e;
$custom-dark: #000000;
JSON
{
  "hex": "#271675",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 250.737,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30027,
    "c": 0.14973,
    "h": 280.6
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#271675
secondary
#97AB3C
accent
#EB3DCC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271675

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

Preview Lab → · Contrast checker → · Palette generator →

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