#251174#251174

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

Color values

HEX#251174
RGBrgb(37, 17, 116)
HSLhsl(252, 74%, 26%)
HSVhsv(252, 85%, 45%)
CMYKcmyk(68.1%, 85.3%, 0%, 54.5%)
CIE-LABlab(15.77, 38.62, -52.28)
CIE-LCHlch(15.77, 64.99, 306.45°)
OKLaboklab(29.14% 0.0275 -0.1509)
OKLCHoklch(29.14% 0.153 280.3)
XYZxyz(4.1148, 2.0548, 16.6994)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251174 #607411
analogous
#112E74 #251174 #561174
triadic
#251174 #742511 #117425
tetradic
#251174 #74112E #607411 #117456
square
#251174 #74112E #607411 #117456
split-complementary
#251174 #745611 #2E7411
monochromatic
#09041B #14093F #251174 #3619A9 #4721DE

Accessibility & contrast

On white

14.88
#251174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251174
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251174#FFFFFF#000000##FFFFFF
##2511741.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251174;
/* rgb */ color: rgb(37, 17, 116);
/* oklch */ color: oklch(29.1% 0.153 280.3);
Tailwind
colors: {
  custom: {
    50: '#6c539d',
    500: '#251174',
    950: '#000000',
  },
}
SCSS
$custom: #251174;
$custom-light: #6c539d;
$custom-dark: #000000;
JSON
{
  "hex": "#251174",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 252.121,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29137,
    "c": 0.15338,
    "h": 280.3
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#251174
secondary
#93AB36
accent
#F137CB
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #251174

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

Preview Lab → · Contrast checker → · Palette generator →

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