#271775#271775

#271775 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.149 H 280.4°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#271775
RGBrgb(39, 23, 117)
HSLhsl(250, 67%, 27%)
HSVhsv(250, 80%, 46%)
CMYKcmyk(66.7%, 80.3%, 0%, 54.1%)
CIE-LABlab(17.12, 36.12, -50.68)
CIE-LCHlch(17.12, 62.24, 305.48°)
OKLaboklab(30.16% 0.0269 -0.1463)
OKLCHoklch(30.16% 0.149 280.4)
XYZxyz(4.3530, 2.3281, 17.0462)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271775 #657517
analogous
#173675 #271775 #561775
triadic
#271775 #752717 #177527
tetradic
#271775 #751736 #657517 #177556
square
#271775 #751736 #657517 #177556
split-complementary
#271775 #755617 #367517
monochromatic
#09051A #160D42 #271775 #3821A8 #4C30D6

Accessibility & contrast

On white

14.33
#271775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271775
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271775#FFFFFF#000000##FFFFFF
##2717751.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271775;
/* rgb */ color: rgb(39, 23, 117);
/* oklch */ color: oklch(30.2% 0.149 280.4);
Tailwind
colors: {
  custom: {
    50: '#6d579e',
    500: '#271775',
    950: '#000000',
  },
}
SCSS
$custom: #271775;
$custom-light: #6d579e;
$custom-dark: #000000;
JSON
{
  "hex": "#271775",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 250.213,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30157,
    "c": 0.14874,
    "h": 280.4
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#271775
secondary
#98AA3D
accent
#EA3ECD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271775

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

Preview Lab → · Contrast checker → · Palette generator →

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