#251281#251281

#251281 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.168 H 277.7°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#251281
RGBrgb(37, 18, 129)
HSLhsl(250, 76%, 29%)
HSVhsv(250, 86%, 51%)
CMYKcmyk(71.3%, 86%, 0%, 49.4%)
CIE-LABlab(17.51, 42.16, -57.72)
CIE-LCHlch(17.51, 71.48, 306.15°)
OKLaboklab(30.79% 0.0226 -0.1667)
OKLCHoklch(30.79% 0.168 277.7)
XYZxyz(4.9404, 2.4105, 20.9695)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251281 #6E8112
analogous
#123781 #251281 #5D1281
triadic
#251281 #812512 #128125
tetradic
#251281 #811237 #6E8112 #12815D
square
#251281 #811237 #6E8112 #12815D
split-complementary
#251281 #815D12 #378112
monochromatic
#08041B #160B4B #251281 #3419B7 #4B2CE2

Accessibility & contrast

On white

14.17
#251281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#251281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251281
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251281#FFFFFF#000000##FFFFFF
##2512811.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #251281;
/* rgb */ color: rgb(37, 18, 129);
/* oklch */ color: oklch(30.8% 0.168 277.7);
Tailwind
colors: {
  custom: {
    50: '#6f55a7',
    500: '#251281',
    950: '#000000',
  },
}
SCSS
$custom: #251281;
$custom-light: #6f55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#251281",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 250.27,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30793,
    "c": 0.16826,
    "h": 277.7
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#251281
secondary
#A1B738
accent
#F236D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251281

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

Preview Lab → · Contrast checker → · Palette generator →

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