#251477#251477

#251477 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.154 H 279.3°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#251477
RGBrgb(37, 20, 119)
HSLhsl(250, 71%, 27%)
HSVhsv(250, 83%, 47%)
CMYKcmyk(68.9%, 83.2%, 0%, 53.3%)
CIE-LABlab(16.63, 38.10, -52.80)
CIE-LCHlch(16.63, 65.11, 305.82°)
OKLaboklab(29.83% 0.0249 -0.1525)
OKLCHoklch(29.83% 0.154 279.3)
XYZxyz(4.3418, 2.2252, 17.6499)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251477 #667714
analogous
#143577 #251477 #571477
triadic
#251477 #772514 #147725
tetradic
#251477 #771435 #667714 #147757
square
#251477 #771435 #667714 #147757
split-complementary
#251477 #775714 #357714
monochromatic
#08041A #150B43 #251477 #351DAB #492ADB

Accessibility & contrast

On white

14.53
#251477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#251477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251477
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251477#FFFFFF#000000##FFFFFF
##2514771.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002575
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #251477;
/* rgb */ color: rgb(37, 20, 119);
/* oklch */ color: oklch(29.8% 0.154 279.3);
Tailwind
colors: {
  custom: {
    50: '#6d559f',
    500: '#251477',
    950: '#000000',
  },
}
SCSS
$custom: #251477;
$custom-light: #6d559f;
$custom-dark: #000000;
JSON
{
  "hex": "#251477",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 250.303,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29833,
    "c": 0.15449,
    "h": 279.3
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#251477
secondary
#99AD3A
accent
#EE3ACF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #251477

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

Preview Lab → · Contrast checker → · Palette generator →

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