#271E53#271E53

#271E53 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.9% C 0.093 H 286.6°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#271E53
RGBrgb(39, 30, 83)
HSLhsl(250, 47%, 22%)
HSVhsv(250, 64%, 33%)
CMYKcmyk(53%, 63.9%, 0%, 67.5%)
CIE-LABlab(15.40, 20.19, -31.04)
CIE-LCHlch(15.40, 37.03, 303.03°)
OKLaboklab(27.91% 0.0264 -0.0887)
OKLCHoklch(27.91% 0.093 286.6)
XYZxyz(2.8618, 1.9843, 8.4141)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E53 #4A531E
analogous
#1E2F53 #271E53 #421E53
triadic
#271E53 #53271E #1E5327
tetradic
#271E53 #531E2F #4A531E #1E5342
square
#271E53 #531E2F #4A531E #1E5342
split-complementary
#271E53 #53421E #2F531E
monochromatic
#0B0816 #120E26 #271E53 #3C2E80 #513EAD

Accessibility & contrast

On white

15.03
#271E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271E53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E53
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E53#FFFFFF#000000##FFFFFF
##271E531.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002855
Deuteranopia (green-blind)
#002552
Tritanopia (blue-blind)
#182A35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271e53;
/* rgb */ color: rgb(39, 30, 83);
/* oklch */ color: oklch(27.9% 0.093 286.6);
Tailwind
colors: {
  custom: {
    50: '#655a84',
    500: '#271e53',
    950: '#000000',
  },
}
SCSS
$custom: #271e53;
$custom-light: #655a84;
$custom-dark: #000000;
JSON
{
  "hex": "#271e53",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 83
  },
  "hsl": {
    "h": 250.189,
    "s": 46.903,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27912,
    "c": 0.09258,
    "h": 286.6
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#271E53
secondary
#7D8845
accent
#D751C0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271E53

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

Preview Lab → · Contrast checker → · Palette generator →

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