#271B62#271B62

#271B62 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.119 H 283.7°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#271B62
RGBrgb(39, 27, 98)
HSLhsl(250, 57%, 25%)
HSVhsv(250, 72%, 38%)
CMYKcmyk(60.2%, 72.4%, 0%, 61.6%)
CIE-LABlab(15.99, 27.40, -40.14)
CIE-LCHlch(15.99, 48.60, 304.31°)
OKLaboklab(28.75% 0.0282 -0.1155)
OKLCHoklch(28.75% 0.119 283.7)
XYZxyz(3.4326, 2.0968, 11.7768)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B62 #56621B
analogous
#1B3362 #271B62 #4B1B62
triadic
#271B62 #62271B #1B6227
tetradic
#271B62 #621B33 #56621B #1B624B
square
#271B62 #621B33 #56621B #1B624B
split-complementary
#271B62 #624B1B #33621B
monochromatic
#0A0718 #140E32 #271B62 #3A2892 #4D35C2

Accessibility & contrast

On white

14.79
#271B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B62
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B62#FFFFFF#000000##FFFFFF
##271B621.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#092D3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271b62;
/* rgb */ color: rgb(39, 27, 98);
/* oklch */ color: oklch(28.8% 0.119 283.7);
Tailwind
colors: {
  custom: {
    50: '#69588f',
    500: '#271b62',
    950: '#000000',
  },
}
SCSS
$custom: #271b62;
$custom-light: #69588f;
$custom-dark: #000000;
JSON
{
  "hex": "#271b62",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 250.141,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28753,
    "c": 0.11888,
    "h": 283.7
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#271B62
secondary
#899841
accent
#E048C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271B62

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

Preview Lab → · Contrast checker → · Palette generator →

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