#251071#251071

#251071 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.151 H 281.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#251071
RGBrgb(37, 16, 113)
HSLhsl(253, 75%, 25%)
HSVhsv(253, 86%, 44%)
CMYKcmyk(67.3%, 85.8%, 0%, 55.7%)
CIE-LABlab(15.25, 38.15, -51.19)
CIE-LCHlch(15.25, 63.84, 306.70°)
OKLaboklab(28.67% 0.029 -0.1477)
OKLCHoklch(28.67% 0.151 281.1)
XYZxyz(3.9279, 1.9558, 15.7901)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251071 #5C7110
analogous
#102B71 #251071 #561071
triadic
#251071 #712510 #107125
tetradic
#251071 #71102B #5C7110 #107156
square
#251071 #71102B #5C7110 #107156
split-complementary
#251071 #715610 #2B7110
monochromatic
#09041B #13083B #251071 #3718A7 #481FDC

Accessibility & contrast

On white

15.09
#251071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#251071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251071
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251071#FFFFFF#000000##FFFFFF
##2510711.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#002E42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #251071;
/* rgb */ color: rgb(37, 16, 113);
/* oklch */ color: oklch(28.7% 0.151 281.1);
Tailwind
colors: {
  custom: {
    50: '#6c539b',
    500: '#251071',
    950: '#000000',
  },
}
SCSS
$custom: #251071;
$custom-light: #6c539b;
$custom-dark: #000000;
JSON
{
  "hex": "#251071",
  "rgb": {
    "r": 37,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 252.99,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28674,
    "c": 0.15055,
    "h": 281.1
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#251071
secondary
#8FA934
accent
#F236C9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020E
muted
#7A787E

Preview Lab

Preview with #251071

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

Preview Lab → · Contrast checker → · Palette generator →

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