#251271#251271

#251271 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.149 H 280.8°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#251271
RGBrgb(37, 18, 113)
HSLhsl(252, 73%, 26%)
HSVhsv(252, 84%, 44%)
CMYKcmyk(67.3%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.58, 37.20, -50.65)
CIE-LCHlch(15.58, 62.84, 306.29°)
OKLaboklab(28.9% 0.028 -0.1462)
OKLCHoklch(28.9% 0.149 280.8)
XYZxyz(3.9589, 2.0179, 15.8004)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251271 #5E7112
analogous
#122E71 #251271 #541271
triadic
#251271 #712512 #127125
tetradic
#251271 #71122E #5E7112 #127154
square
#251271 #71122E #5E7112 #127154
split-complementary
#251271 #715412 #2E7112
monochromatic
#09041A #140A3C #251271 #361AA6 #4823DB

Accessibility & contrast

On white

14.96
#251271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#251271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251271
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251271#FFFFFF#000000##FFFFFF
##2512711.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #251271;
/* rgb */ color: rgb(37, 18, 113);
/* oklch */ color: oklch(28.9% 0.149 280.8);
Tailwind
colors: {
  custom: {
    50: '#6c549b',
    500: '#251271',
    950: '#000000',
  },
}
SCSS
$custom: #251271;
$custom-light: #6c549b;
$custom-dark: #000000;
JSON
{
  "hex": "#251271",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 252,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.289,
    "c": 0.14883,
    "h": 280.8
  },
  "luminance": 0.02018
}

Semantic roles & 50–950 ramp

primary
#251271
secondary
#91A837
accent
#EF39CB
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251271

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

Preview Lab → · Contrast checker → · Palette generator →

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