#251260#251260

#251260 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.127 H 285.2°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#251260
RGBrgb(37, 18, 96)
HSLhsl(255, 68%, 22%)
HSVhsv(255, 81%, 38%)
CMYKcmyk(61.5%, 81.3%, 0%, 62.4%)
CIE-LABlab(13.65, 31.77, -42.65)
CIE-LCHlch(13.65, 53.18, 306.68°)
OKLaboklab(26.98% 0.0335 -0.1228)
OKLCHoklch(26.98% 0.127 285.2)
XYZxyz(3.0899, 1.6703, 11.2236)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251260 #4D6012
analogous
#122660 #251260 #4C1260
triadic
#251260 #602512 #126025
tetradic
#251260 #601226 #4D6012 #12604C
square
#251260 #601226 #4D6012 #12604C
split-complementary
#251260 #604C12 #266012
monochromatic
#0A051A #11082C #251260 #391C94 #4D25C7

Accessibility & contrast

On white

15.74
#251260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#251260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251260
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251260#FFFFFF#000000##FFFFFF
##2512601.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00205F
Tritanopia (blue-blind)
#062838
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #251260;
/* rgb */ color: rgb(37, 18, 96);
/* oklch */ color: oklch(27.0% 0.127 285.2);
Tailwind
colors: {
  custom: {
    50: '#68528e',
    500: '#251260',
    950: '#000000',
  },
}
SCSS
$custom: #251260;
$custom-light: #68528e;
$custom-dark: #000000;
JSON
{
  "hex": "#251260",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 254.615,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26982,
    "c": 0.12732,
    "h": 285.2
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#251260
secondary
#809836
accent
#EB3DC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #251260

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

Preview Lab → · Contrast checker → · Palette generator →

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