#271B45#271B45

#271B45 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.076 H 293.7°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#271B45
RGBrgb(39, 27, 69)
HSLhsl(257, 44%, 19%)
HSVhsv(257, 61%, 27%)
CMYKcmyk(43.5%, 60.9%, 0%, 72.9%)
CIE-LABlab(13.50, 17.52, -24.50)
CIE-LCHlch(13.50, 30.12, 305.57°)
OKLaboklab(26.16% 0.0304 -0.0695)
OKLCHoklch(26.16% 0.076 293.7)
XYZxyz(2.3025, 1.6448, 5.8252)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B45 #39451B
analogous
#1B2445 #271B45 #3C1B45
triadic
#271B45 #45271B #1B4527
tetradic
#271B45 #451B24 #39451B #1B453C
square
#271B45 #451B24 #39451B #1B453C
split-complementary
#271B45 #453C1B #24451B
monochromatic
#0C0916 #0E0A19 #271B45 #402C71 #593D9D

Accessibility & contrast

On white

15.80
#271B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#271B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B45
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B45#FFFFFF#000000##FFFFFF
##271B451.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082346
Deuteranopia (green-blind)
#0B2244
Tritanopia (blue-blind)
#1F242D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271b45;
/* rgb */ color: rgb(39, 27, 69);
/* oklch */ color: oklch(26.2% 0.076 293.7);
Tailwind
colors: {
  custom: {
    50: '#635779',
    500: '#271b45',
    950: '#000000',
  },
}
SCSS
$custom: #271b45;
$custom-light: #635779;
$custom-dark: #000000;
JSON
{
  "hex": "#271b45",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 257.143,
    "s": 43.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26158,
    "c": 0.07587,
    "h": 293.7
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#271B45
secondary
#6A7B41
accent
#D354AF
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #271B45

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

Preview Lab → · Contrast checker → · Palette generator →

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