#251180#251180

#251180 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.168 H 278.0°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#251180
RGBrgb(37, 17, 128)
HSLhsl(251, 77%, 28%)
HSVhsv(251, 87%, 50%)
CMYKcmyk(71.1%, 86.7%, 0%, 49.8%)
CIE-LABlab(17.24, 42.30, -57.54)
CIE-LCHlch(17.24, 71.41, 306.32°)
OKLaboklab(30.57% 0.0233 -0.1662)
OKLCHoklch(30.57% 0.168 278)
XYZxyz(4.8584, 2.3523, 20.6159)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251180 #6C8011
analogous
#113480 #251180 #5C1180
triadic
#251180 #802511 #118025
tetradic
#251180 #801134 #6C8011 #11805C
square
#251180 #801134 #6C8011 #11805C
split-complementary
#251180 #805C11 #348011
monochromatic
#08041B #150A4A #251180 #3518B6 #4A29E3

Accessibility & contrast

On white

14.28
#251180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#251180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251180
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251180#FFFFFF#000000##FFFFFF
##2511801.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00267E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #251180;
/* rgb */ color: rgb(37, 17, 128);
/* oklch */ color: oklch(30.6% 0.168 278.0);
Tailwind
colors: {
  custom: {
    50: '#6f54a6',
    500: '#251180',
    950: '#000000',
  },
}
SCSS
$custom: #251180;
$custom-light: #6f54a6;
$custom-dark: #000000;
JSON
{
  "hex": "#251180",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 250.811,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30571,
    "c": 0.16782,
    "h": 278
  },
  "luminance": 0.02353
}

Semantic roles & 50–950 ramp

primary
#251180
secondary
#9FB637
accent
#F335D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #251180

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

Preview Lab → · Contrast checker → · Palette generator →

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