#251272#251272

#251272 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.150 H 280.6°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#251272
RGBrgb(37, 18, 114)
HSLhsl(252, 73%, 26%)
HSVhsv(252, 84%, 45%)
CMYKcmyk(67.5%, 84.2%, 0%, 55.3%)
CIE-LABlab(15.70, 37.51, -51.10)
CIE-LCHlch(15.70, 63.39, 306.28°)
OKLaboklab(29.02% 0.0276 -0.1475)
OKLCHoklch(29.02% 0.15 280.6)
XYZxyz(4.0156, 2.0405, 16.0986)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251272 #5F7212
analogous
#122F72 #251272 #551272
triadic
#251272 #722512 #127225
tetradic
#251272 #72122F #5F7212 #127255
square
#251272 #72122F #5F7212 #127255
split-complementary
#251272 #725512 #2F7212
monochromatic
#09041A #140A3D #251272 #361AA7 #4723DC

Accessibility & contrast

On white

14.91
#251272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251272
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251272#FFFFFF#000000##FFFFFF
##2512721.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251272;
/* rgb */ color: rgb(37, 18, 114);
/* oklch */ color: oklch(29.0% 0.150 280.6);
Tailwind
colors: {
  custom: {
    50: '#6c549c',
    500: '#251272',
    950: '#000000',
  },
}
SCSS
$custom: #251272;
$custom-light: #6c549c;
$custom-dark: #000000;
JSON
{
  "hex": "#251272",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 251.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29016,
    "c": 0.15007,
    "h": 280.6
  },
  "luminance": 0.02041
}

Semantic roles & 50–950 ramp

primary
#251272
secondary
#92A937
accent
#EF38CB
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251272

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

Preview Lab → · Contrast checker → · Palette generator →

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