#251275#251275

#251275 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.154 H 280.0°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#251275
RGBrgb(37, 18, 117)
HSLhsl(252, 73%, 26%)
HSVhsv(252, 85%, 46%)
CMYKcmyk(68.4%, 84.6%, 0%, 54.1%)
CIE-LABlab(16.05, 38.45, -52.46)
CIE-LCHlch(16.05, 65.04, 306.24°)
OKLaboklab(29.37% 0.0266 -0.1514)
OKLCHoklch(29.37% 0.154 280)
XYZxyz(4.1891, 2.1099, 17.0127)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251275 #627512
analogous
#123175 #251275 #571275
triadic
#251275 #752512 #127525
tetradic
#251275 #751231 #627512 #127557
square
#251275 #751231 #627512 #127557
split-complementary
#251275 #755712 #317512
monochromatic
#08041B #140A40 #251275 #361AAA #4824DD

Accessibility & contrast

On white

14.77
#251275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#251275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251275
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251275#FFFFFF#000000##FFFFFF
##2512751.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B78
Deuteranopia (green-blind)
#002473
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #251275;
/* rgb */ color: rgb(37, 18, 117);
/* oklch */ color: oklch(29.4% 0.154 280.0);
Tailwind
colors: {
  custom: {
    50: '#6d549e',
    500: '#251275',
    950: '#000000',
  },
}
SCSS
$custom: #251275;
$custom-light: #6d549e;
$custom-dark: #000000;
JSON
{
  "hex": "#251275",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 251.515,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29367,
    "c": 0.15376,
    "h": 280
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#251275
secondary
#95AC37
accent
#F038CD
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #251275

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

Preview Lab → · Contrast checker → · Palette generator →

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