#251256#251256

#251256 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.114 H 288.5°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#251256
RGBrgb(37, 18, 86)
HSLhsl(257, 65%, 20%)
HSVhsv(257, 79%, 34%)
CMYKcmyk(57%, 79.1%, 0%, 66.3%)
CIE-LABlab(12.59, 28.53, -37.66)
CIE-LCHlch(12.59, 47.25, 307.14°)
OKLaboklab(25.92% 0.0363 -0.1083)
OKLCHoklch(25.92% 0.114 288.5)
XYZxyz(2.6585, 1.4977, 8.9513)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251256 #435612
analogous
#122156 #251256 #471256
triadic
#251256 #562512 #125625
tetradic
#251256 #561221 #435612 #125647
square
#251256 #561221 #435612 #125647
split-complementary
#251256 #564712 #215612
monochromatic
#0B0519 #0F0723 #251256 #3B1D89 #5127BB

Accessibility & contrast

On white

16.16
#251256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#251256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251256
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251256#FFFFFF#000000##FFFFFF
##2512561.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#122433
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #251256;
/* rgb */ color: rgb(37, 18, 86);
/* oklch */ color: oklch(25.9% 0.114 288.5);
Tailwind
colors: {
  custom: {
    50: '#665286',
    500: '#251256',
    950: '#000000',
  },
}
SCSS
$custom: #251256;
$custom-light: #665286;
$custom-dark: #000000;
JSON
{
  "hex": "#251256",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 256.765,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25915,
    "c": 0.11418,
    "h": 288.5
  },
  "luminance": 0.01498
}

Semantic roles & 50–950 ramp

primary
#251256
secondary
#768F35
accent
#E83FB9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #251256

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

Preview Lab → · Contrast checker → · Palette generator →

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