#251273#251273

#251273 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.151 H 280.4°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#251273
RGBrgb(37, 18, 115)
HSLhsl(252, 73%, 26%)
HSVhsv(252, 84%, 45%)
CMYKcmyk(67.8%, 84.3%, 0%, 54.9%)
CIE-LABlab(15.82, 37.83, -51.56)
CIE-LCHlch(15.82, 63.94, 306.27°)
OKLaboklab(29.13% 0.0273 -0.1488)
OKLCHoklch(29.13% 0.151 280.4)
XYZxyz(4.0728, 2.0634, 16.4000)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251273 #607312
analogous
#122F73 #251273 #551273
triadic
#251273 #732512 #127325
tetradic
#251273 #73122F #607312 #127355
square
#251273 #73122F #607312 #127355
split-complementary
#251273 #735512 #2F7312
monochromatic
#09041A #140A3E #251273 #361AA8 #4723DD

Accessibility & contrast

On white

14.86
#251273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#251273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251273
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251273#FFFFFF#000000##FFFFFF
##2512731.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002471
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #251273;
/* rgb */ color: rgb(37, 18, 115);
/* oklch */ color: oklch(29.1% 0.151 280.4);
Tailwind
colors: {
  custom: {
    50: '#6c549c',
    500: '#251273',
    950: '#000000',
  },
}
SCSS
$custom: #251273;
$custom-light: #6c549c;
$custom-dark: #000000;
JSON
{
  "hex": "#251273",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 251.753,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29133,
    "c": 0.1513,
    "h": 280.4
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#251273
secondary
#93AA37
accent
#F038CC
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #251273

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

Preview Lab → · Contrast checker → · Palette generator →

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