#251568#251568

#251568 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.134 H 282.4°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#251568
RGBrgb(37, 21, 104)
HSLhsl(252, 66%, 25%)
HSVhsv(252, 80%, 41%)
CMYKcmyk(64.4%, 79.8%, 0%, 59.2%)
CIE-LABlab(15.11, 32.71, -45.55)
CIE-LCHlch(15.11, 56.08, 305.68°)
OKLaboklab(28.27% 0.0288 -0.1313)
OKLCHoklch(28.27% 0.134 282.4)
XYZxyz(3.5290, 1.9289, 13.2804)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251568 #586815
analogous
#152F68 #251568 #4F1568
triadic
#251568 #682515 #156825
tetradic
#251568 #68152F #586815 #15684F
square
#251568 #68152F #586815 #15684F
split-complementary
#251568 #684F15 #2F6815
monochromatic
#090519 #130B35 #251568 #371F9B #492ACE

Accessibility & contrast

On white

15.15
#251568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#251568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251568
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251568#FFFFFF#000000##FFFFFF
##2515681.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#002D3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #251568;
/* rgb */ color: rgb(37, 21, 104);
/* oklch */ color: oklch(28.3% 0.134 282.4);
Tailwind
colors: {
  custom: {
    50: '#695594',
    500: '#251568',
    950: '#000000',
  },
}
SCSS
$custom: #251568;
$custom-light: #695594;
$custom-dark: #000000;
JSON
{
  "hex": "#251568",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 251.566,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28267,
    "c": 0.13447,
    "h": 282.4
  },
  "luminance": 0.01929
}

Semantic roles & 50–950 ramp

primary
#251568
secondary
#8B9F3A
accent
#E93EC8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #251568

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

Preview Lab → · Contrast checker → · Palette generator →

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