#271237#271237

#271237 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.071 H 308.0°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#271237
RGBrgb(39, 18, 55)
HSLhsl(274, 51%, 14%)
HSVhsv(274, 67%, 22%)
CMYKcmyk(29.1%, 67.3%, 0%, 78.4%)
CIE-LABlab(10.11, 19.32, -20.01)
CIE-LCHlch(10.11, 27.82, 313.98°)
OKLaboklab(23.33% 0.044 -0.0563)
OKLCHoklch(23.33% 0.072 308)
XYZxyz(1.7425, 1.1398, 3.7419)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271237 #223712
analogous
#151237 #271237 #371235
triadic
#271237 #372712 #123727
tetradic
#271237 #371512 #223712 #123537
square
#271237 #371512 #223712 #123537
split-complementary
#271237 #353712 #123715
monochromatic
#100817 #100817 #271237 #482165 #683093

Accessibility & contrast

On white

17.10
#271237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#271237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271237
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271237#FFFFFF#000000##FFFFFF
##2712371.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051B38
Deuteranopia (green-blind)
#0D1C36
Tritanopia (blue-blind)
#251922
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #271237;
/* rgb */ color: rgb(39, 18, 55);
/* oklch */ color: oklch(23.3% 0.071 308.0);
Tailwind
colors: {
  custom: {
    50: '#63516e',
    500: '#271237',
    950: '#000000',
  },
}
SCSS
$custom: #271237;
$custom-light: #63516e;
$custom-dark: #000000;
JSON
{
  "hex": "#271237",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 274.054,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23325,
    "c": 0.0715,
    "h": 308
  },
  "luminance": 0.0114
}

Semantic roles & 50–950 ramp

primary
#271237
secondary
#4E7035
accent
#DA4E8A
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #271237

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

Preview Lab → · Contrast checker → · Palette generator →

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