#251276#251276

#251276 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.155 H 279.8°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#251276
RGBrgb(37, 18, 118)
HSLhsl(251, 74%, 27%)
HSVhsv(251, 85%, 46%)
CMYKcmyk(68.6%, 84.7%, 0%, 53.7%)
CIE-LABlab(16.17, 38.77, -52.90)
CIE-LCHlch(16.17, 65.59, 306.23°)
OKLaboklab(29.48% 0.0263 -0.1527)
OKLCHoklch(29.48% 0.155 279.8)
XYZxyz(4.2482, 2.1336, 17.3240)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251276 #637612
analogous
#123176 #251276 #571276
triadic
#251276 #762512 #127625
tetradic
#251276 #761231 #637612 #127657
square
#251276 #761231 #637612 #127657
split-complementary
#251276 #765712 #317612
monochromatic
#08041B #140A41 #251276 #361AAB #4825DE

Accessibility & contrast

On white

14.72
#251276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#251276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251276
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251276#FFFFFF#000000##FFFFFF
##2512761.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #251276;
/* rgb */ color: rgb(37, 18, 118);
/* oklch */ color: oklch(29.5% 0.155 279.8);
Tailwind
colors: {
  custom: {
    50: '#6d549f',
    500: '#251276',
    950: '#000000',
  },
}
SCSS
$custom: #251276;
$custom-light: #6d549f;
$custom-dark: #000000;
JSON
{
  "hex": "#251276",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 251.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29484,
    "c": 0.15499,
    "h": 279.8
  },
  "luminance": 0.02134
}

Semantic roles & 50–950 ramp

primary
#251276
secondary
#96AD37
accent
#F038CD
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #251276

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

Preview Lab → · Contrast checker → · Palette generator →

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