#251472#251472

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

Color values

HEX#251472
RGBrgb(37, 20, 114)
HSLhsl(251, 70%, 26%)
HSVhsv(251, 82%, 45%)
CMYKcmyk(67.5%, 82.5%, 0%, 55.3%)
CIE-LABlab(16.05, 36.51, -50.53)
CIE-LCHlch(16.05, 62.34, 305.85°)
OKLaboklab(29.26% 0.0265 -0.1459)
OKLCHoklch(29.26% 0.148 280.3)
XYZxyz(4.0494, 2.1082, 16.1099)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251472 #617214
analogous
#143272 #251472 #541472
triadic
#251472 #722514 #147225
tetradic
#251472 #721432 #617214 #147254
square
#251472 #721432 #617214 #147254
split-complementary
#251472 #725414 #327214
monochromatic
#08051A #140B3E #251472 #361DA6 #4727D9

Accessibility & contrast

On white

14.77
#251472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#251472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251472
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251472#FFFFFF#000000##FFFFFF
##2514721.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #251472;
/* rgb */ color: rgb(37, 20, 114);
/* oklch */ color: oklch(29.3% 0.148 280.3);
Tailwind
colors: {
  custom: {
    50: '#6c559c',
    500: '#251472',
    950: '#000000',
  },
}
SCSS
$custom: #251472;
$custom-light: #6c559c;
$custom-dark: #000000;
JSON
{
  "hex": "#251472",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 250.851,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29257,
    "c": 0.14825,
    "h": 280.3
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#251472
secondary
#94A839
accent
#ED3BCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251472

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

Preview Lab → · Contrast checker → · Palette generator →

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