#251280#251280

#251280 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.167 H 277.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#251280
RGBrgb(37, 18, 128)
HSLhsl(250, 75%, 29%)
HSVhsv(250, 86%, 50%)
CMYKcmyk(71.1%, 85.9%, 0%, 49.8%)
CIE-LABlab(17.39, 41.86, -57.29)
CIE-LCHlch(17.39, 70.96, 306.15°)
OKLaboklab(30.67% 0.0229 -0.1655)
OKLCHoklch(30.67% 0.167 277.9)
XYZxyz(4.8743, 2.3840, 20.6212)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251280 #6D8012
analogous
#123680 #251280 #5C1280
triadic
#251280 #802512 #128025
tetradic
#251280 #801236 #6D8012 #12805C
square
#251280 #801236 #6D8012 #12805C
split-complementary
#251280 #805C12 #368012
monochromatic
#08041B #150A4A #251280 #351AB6 #4B2BE1

Accessibility & contrast

On white

14.22
#251280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251280
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251280#FFFFFF#000000##FFFFFF
##2512801.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00267E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #251280;
/* rgb */ color: rgb(37, 18, 128);
/* oklch */ color: oklch(30.7% 0.167 277.9);
Tailwind
colors: {
  custom: {
    50: '#6f55a6',
    500: '#251280',
    950: '#000000',
  },
}
SCSS
$custom: #251280;
$custom-light: #6f55a6;
$custom-dark: #000000;
JSON
{
  "hex": "#251280",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 250.364,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30673,
    "c": 0.16707,
    "h": 277.9
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#251280
secondary
#A0B638
accent
#F236D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #251280

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

Preview Lab → · Contrast checker → · Palette generator →

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