#251565#251565

#251565 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.131 H 283.1°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#251565
RGBrgb(37, 21, 101)
HSLhsl(252, 66%, 24%)
HSVhsv(252, 79%, 40%)
CMYKcmyk(63.4%, 79.2%, 0%, 60.4%)
CIE-LABlab(14.78, 31.72, -44.11)
CIE-LCHlch(14.78, 54.33, 305.73°)
OKLaboklab(27.94% 0.0297 -0.1271)
OKLCHoklch(27.94% 0.131 283.1)
XYZxyz(3.3794, 1.8690, 12.4921)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251565 #556515
analogous
#152D65 #251565 #4D1565
triadic
#251565 #652515 #156525
tetradic
#251565 #65152D #556515 #15654D
square
#251565 #65152D #556515 #15654D
split-complementary
#251565 #654D15 #2D6515
monochromatic
#090519 #120A32 #251565 #382098 #4A2ACA

Accessibility & contrast

On white

15.29
#251565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#251565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251565
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251565#FFFFFF#000000##FFFFFF
##2515651.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#002C3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #251565;
/* rgb */ color: rgb(37, 21, 101);
/* oklch */ color: oklch(27.9% 0.131 283.1);
Tailwind
colors: {
  custom: {
    50: '#695492',
    500: '#251565',
    950: '#000000',
  },
}
SCSS
$custom: #251565;
$custom-light: #695492;
$custom-dark: #000000;
JSON
{
  "hex": "#251565",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 252,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27941,
    "c": 0.13055,
    "h": 283.1
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#251565
secondary
#889C3A
accent
#E93FC7
background
#F6F5F9
surface
#EBE8F1
border
#C6C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #251565

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

Preview Lab → · Contrast checker → · Palette generator →

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