#251371#251371

#251371 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.148 H 280.7°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#251371
RGBrgb(37, 19, 113)
HSLhsl(251, 71%, 26%)
HSVhsv(251, 83%, 44%)
CMYKcmyk(67.3%, 83.2%, 0%, 55.7%)
CIE-LABlab(15.75, 36.70, -50.37)
CIE-LCHlch(15.75, 62.32, 306.08°)
OKLaboklab(29.02% 0.0274 -0.1454)
OKLCHoklch(29.02% 0.148 280.7)
XYZxyz(3.9755, 2.0510, 15.8060)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251371 #5F7113
analogous
#133071 #251371 #541371
triadic
#251371 #712513 #137125
tetradic
#251371 #711330 #5F7113 #137154
square
#251371 #711330 #5F7113 #137154
split-complementary
#251371 #715413 #307113
monochromatic
#09041A #140A3D #251371 #361CA5 #4725DA

Accessibility & contrast

On white

14.89
#251371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#251371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251371
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251371#FFFFFF#000000##FFFFFF
##2513711.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251371;
/* rgb */ color: rgb(37, 19, 113);
/* oklch */ color: oklch(29.0% 0.148 280.7);
Tailwind
colors: {
  custom: {
    50: '#6c549b',
    500: '#251371',
    950: '#000000',
  },
}
SCSS
$custom: #251371;
$custom-light: #6c549b;
$custom-dark: #000000;
JSON
{
  "hex": "#251371",
  "rgb": {
    "r": 37,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 251.489,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29019,
    "c": 0.14793,
    "h": 280.7
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#251371
secondary
#92A838
accent
#EE3ACB
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251371

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

Preview Lab → · Contrast checker → · Palette generator →

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