#251564#251564

#251564 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.129 H 283.4°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#251564
RGBrgb(37, 21, 100)
HSLhsl(252, 65%, 24%)
HSVhsv(252, 79%, 39%)
CMYKcmyk(63%, 79%, 0%, 60.8%)
CIE-LABlab(14.68, 31.39, -43.62)
CIE-LCHlch(14.68, 53.74, 305.74°)
OKLaboklab(27.83% 0.0299 -0.1257)
OKLCHoklch(27.83% 0.129 283.4)
XYZxyz(3.3307, 1.8495, 12.2356)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251564 #546415
analogous
#152C64 #251564 #4C1564
triadic
#251564 #642515 #156425
tetradic
#251564 #64152C #546415 #15644C
square
#251564 #64152C #546415 #15644C
split-complementary
#251564 #644C15 #2C6415
monochromatic
#090519 #120A31 #251564 #382097 #4A2AC9

Accessibility & contrast

On white

15.33
#251564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251564
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251564#FFFFFF#000000##FFFFFF
##2515641.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#002B3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #251564;
/* rgb */ color: rgb(37, 21, 100);
/* oklch */ color: oklch(27.8% 0.129 283.4);
Tailwind
colors: {
  custom: {
    50: '#685491',
    500: '#251564',
    950: '#000000',
  },
}
SCSS
$custom: #251564;
$custom-light: #685491;
$custom-dark: #000000;
JSON
{
  "hex": "#251564",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 252.152,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27832,
    "c": 0.12923,
    "h": 283.4
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#251564
secondary
#879B3A
accent
#E840C6
background
#F6F5F9
surface
#EBE8F1
border
#C6C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #251564

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

Preview Lab → · Contrast checker → · Palette generator →

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