#251374#251374

#251374 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.152 H 280.0°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#251374
RGBrgb(37, 19, 116)
HSLhsl(251, 72%, 26%)
HSVhsv(251, 84%, 45%)
CMYKcmyk(68.1%, 83.6%, 0%, 54.5%)
CIE-LABlab(16.10, 37.65, -51.73)
CIE-LCHlch(16.10, 63.98, 306.05°)
OKLaboklab(29.37% 0.0264 -0.1493)
OKLCHoklch(29.37% 0.152 280)
XYZxyz(4.1472, 2.1197, 16.7102)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251374 #627413
analogous
#133274 #251374 #561374
triadic
#251374 #742513 #137425
tetradic
#251374 #741332 #627413 #137456
square
#251374 #741332 #627413 #137456
split-complementary
#251374 #745613 #327413
monochromatic
#08041A #140A3F #251374 #361CA9 #4826DB

Accessibility & contrast

On white

14.75
#251374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251374
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251374#FFFFFF#000000##FFFFFF
##2513741.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #251374;
/* rgb */ color: rgb(37, 19, 116);
/* oklch */ color: oklch(29.4% 0.152 280.0);
Tailwind
colors: {
  custom: {
    50: '#6c549d',
    500: '#251374',
    950: '#000000',
  },
}
SCSS
$custom: #251374;
$custom-light: #6c549d;
$custom-dark: #000000;
JSON
{
  "hex": "#251374",
  "rgb": {
    "r": 37,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 251.134,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29366,
    "c": 0.15166,
    "h": 280
  },
  "luminance": 0.0212
}

Semantic roles & 50–950 ramp

primary
#251374
secondary
#95AA38
accent
#EF39CD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #251374

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

Preview Lab → · Contrast checker → · Palette generator →

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