#271869#271869

#271869 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.132 H 282.9°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#271869
RGBrgb(39, 24, 105)
HSLhsl(251, 63%, 25%)
HSVhsv(251, 77%, 41%)
CMYKcmyk(62.9%, 77.1%, 0%, 58.8%)
CIE-LABlab(16.03, 31.60, -44.69)
CIE-LCHlch(16.03, 54.74, 305.27°)
OKLaboklab(28.99% 0.0294 -0.1288)
OKLCHoklch(28.99% 0.132 282.9)
XYZxyz(3.7123, 2.1043, 13.5724)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271869 #5A6918
analogous
#183169 #271869 #4F1869
triadic
#271869 #692718 #186927
tetradic
#271869 #691831 #5A6918 #18694F
square
#271869 #691831 #5A6918 #18694F
split-complementary
#271869 #694F18 #316918
monochromatic
#090619 #140D37 #271869 #3A239B #4C2FCD

Accessibility & contrast

On white

14.78
#271869 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271869 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271869
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271869#FFFFFF#000000##FFFFFF
##2718691.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6B
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271869;
/* rgb */ color: rgb(39, 24, 105);
/* oklch */ color: oklch(29.0% 0.132 282.9);
Tailwind
colors: {
  custom: {
    50: '#6a5795',
    500: '#271869',
    950: '#000000',
  },
}
SCSS
$custom: #271869;
$custom-light: #6a5795;
$custom-dark: #000000;
JSON
{
  "hex": "#271869",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 105
  },
  "hsl": {
    "h": 251.111,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28994,
    "c": 0.13211,
    "h": 282.9
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#271869
secondary
#8D9F3E
accent
#E642C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271869

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

Preview Lab → · Contrast checker → · Palette generator →

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