#251372#251372

#251372 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.149 H 280.5°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#251372
RGBrgb(37, 19, 114)
HSLhsl(251, 71%, 26%)
HSVhsv(251, 83%, 45%)
CMYKcmyk(67.5%, 83.3%, 0%, 55.3%)
CIE-LABlab(15.87, 37.02, -50.82)
CIE-LCHlch(15.87, 62.87, 306.07°)
OKLaboklab(29.14% 0.0271 -0.1467)
OKLCHoklch(29.14% 0.149 280.5)
XYZxyz(4.0321, 2.0736, 16.1041)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251372 #607213
analogous
#133072 #251372 #541372
triadic
#251372 #722513 #137225
tetradic
#251372 #721330 #607213 #137254
square
#251372 #721330 #607213 #137254
split-complementary
#251372 #725413 #307213
monochromatic
#09041A #140A3E #251372 #361CA6 #4725DB

Accessibility & contrast

On white

14.84
#251372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#251372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251372
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251372#FFFFFF#000000##FFFFFF
##2513721.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251372;
/* rgb */ color: rgb(37, 19, 114);
/* oklch */ color: oklch(29.1% 0.149 280.5);
Tailwind
colors: {
  custom: {
    50: '#6c549c',
    500: '#251372',
    950: '#000000',
  },
}
SCSS
$custom: #251372;
$custom-light: #6c549c;
$custom-dark: #000000;
JSON
{
  "hex": "#251372",
  "rgb": {
    "r": 37,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 251.368,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29135,
    "c": 0.14918,
    "h": 280.5
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#251372
secondary
#93A938
accent
#EE3ACC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251372

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

Preview Lab → · Contrast checker → · Palette generator →

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