#251284#251284

#251284 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.172 H 277.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#251284
RGBrgb(37, 18, 132)
HSLhsl(250, 76%, 29%)
HSVhsv(250, 86%, 52%)
CMYKcmyk(72%, 86.4%, 0%, 48.2%)
CIE-LABlab(17.88, 43.08, -59.01)
CIE-LCHlch(17.88, 73.06, 306.13°)
OKLaboklab(31.16% 0.0216 -0.1705)
OKLCHoklch(31.16% 0.172 277.2)
XYZxyz(5.1428, 2.4914, 22.0352)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251284 #718412
analogous
#123884 #251284 #5E1284
triadic
#251284 #842512 #128425
tetradic
#251284 #841238 #718412 #12845E
square
#251284 #841238 #718412 #12845E
split-complementary
#251284 #845E12 #388412
monochromatic
#08041B #160B4E #251284 #3419BA #4C2EE2

Accessibility & contrast

On white

14.01
#251284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#251284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251284
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251284#FFFFFF#000000##FFFFFF
##2512841.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003087
Deuteranopia (green-blind)
#002782
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #251284;
/* rgb */ color: rgb(37, 18, 132);
/* oklch */ color: oklch(31.2% 0.172 277.2);
Tailwind
colors: {
  custom: {
    50: '#7055a9',
    500: '#251284',
    950: '#000000',
  },
}
SCSS
$custom: #251284;
$custom-light: #7055a9;
$custom-dark: #000000;
JSON
{
  "hex": "#251284",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 132
  },
  "hsl": {
    "h": 250,
    "s": 76,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31156,
    "c": 0.17183,
    "h": 277.2
  },
  "luminance": 0.02492
}

Semantic roles & 50–950 ramp

primary
#251284
secondary
#A4B939
accent
#F335D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251284

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

Preview Lab → · Contrast checker → · Palette generator →

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