#251173#251173

#251173 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.152 H 280.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#251173
RGBrgb(37, 17, 115)
HSLhsl(252, 74%, 26%)
HSVhsv(252, 85%, 45%)
CMYKcmyk(67.8%, 85.2%, 0%, 54.9%)
CIE-LABlab(15.65, 38.30, -51.83)
CIE-LCHlch(15.65, 64.45, 306.47°)
OKLaboklab(29.02% 0.0278 -0.1496)
OKLCHoklch(29.02% 0.152 280.5)
XYZxyz(4.0569, 2.0317, 16.3947)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251173 #5F7311
analogous
#112E73 #251173 #561173
triadic
#251173 #732511 #117325
tetradic
#251173 #73112E #5F7311 #117356
square
#251173 #73112E #5F7311 #117356
split-complementary
#251173 #735611 #2E7311
monochromatic
#09041B #14093E #251173 #3619A8 #4721DE

Accessibility & contrast

On white

14.93
#251173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251173
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251173#FFFFFF#000000##FFFFFF
##2511731.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251173;
/* rgb */ color: rgb(37, 17, 115);
/* oklch */ color: oklch(29.0% 0.152 280.5);
Tailwind
colors: {
  custom: {
    50: '#6c539c',
    500: '#251173',
    950: '#000000',
  },
}
SCSS
$custom: #251173;
$custom-light: #6c539c;
$custom-dark: #000000;
JSON
{
  "hex": "#251173",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 252.245,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.2902,
    "c": 0.15216,
    "h": 280.5
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

primary
#251173
secondary
#92AA36
accent
#F137CB
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #251173

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

Preview Lab → · Contrast checker → · Palette generator →

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