#271F45#271F45

#271F45 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.069 H 290.8°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#271F45
RGBrgb(39, 31, 69)
HSLhsl(253, 38%, 20%)
HSVhsv(253, 55%, 27%)
CMYKcmyk(43.5%, 55.1%, 0%, 72.9%)
CIE-LABlab(14.63, 14.68, -22.69)
CIE-LCHlch(14.63, 27.03, 302.90°)
OKLaboklab(27% 0.0243 -0.0642)
OKLCHoklch(27% 0.069 290.8)
XYZxyz(2.4006, 1.8409, 5.8579)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F45 #3D451F
analogous
#1F2A45 #271F45 #3A1F45
triadic
#271F45 #45271F #1F4527
tetradic
#271F45 #451F2A #3D451F #1F453A
square
#271F45 #451F2A #3D451F #1F453A
split-complementary
#271F45 #453A1F #2A451F
monochromatic
#0C0915 #0F0C1B #271F45 #3F326F #574599

Accessibility & contrast

On white

15.35
#271F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F45
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F45#FFFFFF#000000##FFFFFF
##271F451.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102646
Deuteranopia (green-blind)
#112444
Tritanopia (blue-blind)
#1F272E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271f45;
/* rgb */ color: rgb(39, 31, 69);
/* oklch */ color: oklch(27.0% 0.069 290.8);
Tailwind
colors: {
  custom: {
    50: '#635a79',
    500: '#271f45',
    950: '#000000',
  },
}
SCSS
$custom: #271f45;
$custom-light: #635a79;
$custom-dark: #000000;
JSON
{
  "hex": "#271f45",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 69
  },
  "hsl": {
    "h": 252.632,
    "s": 38,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26999,
    "c": 0.06866,
    "h": 290.8
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#271F45
secondary
#6F7946
accent
#CE5AB6
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050409
muted
#7A797B

Preview Lab

Preview with #271F45

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

Preview Lab → · Contrast checker → · Palette generator →

#271F45 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva