#251268#251268

#251268 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.138 H 283.0°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#251268
RGBrgb(37, 18, 104)
HSLhsl(253, 70%, 24%)
HSVhsv(253, 83%, 41%)
CMYKcmyk(64.4%, 82.7%, 0%, 59.2%)
CIE-LABlab(14.54, 34.34, -46.48)
CIE-LCHlch(14.54, 57.79, 306.45°)
OKLaboklab(27.87% 0.0309 -0.134)
OKLCHoklch(27.87% 0.138 283)
XYZxyz(3.4772, 1.8252, 13.2631)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251268 #556812
analogous
#122A68 #251268 #501268
triadic
#251268 #682512 #126825
tetradic
#251268 #68122A #556812 #126850
square
#251268 #68122A #556812 #126850
split-complementary
#251268 #685012 #2A6812
monochromatic
#09051A #120934 #251268 #381B9C #4A24D0

Accessibility & contrast

On white

15.38
#251268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#251268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251268
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251268#FFFFFF#000000##FFFFFF
##2512681.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002266
Tritanopia (blue-blind)
#002B3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #251268;
/* rgb */ color: rgb(37, 18, 104);
/* oklch */ color: oklch(27.9% 0.138 283.0);
Tailwind
colors: {
  custom: {
    50: '#6a5394',
    500: '#251268',
    950: '#000000',
  },
}
SCSS
$custom: #251268;
$custom-light: #6a5394;
$custom-dark: #000000;
JSON
{
  "hex": "#251268",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 253.256,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2787,
    "c": 0.13756,
    "h": 283
  },
  "luminance": 0.01825
}

Semantic roles & 50–950 ramp

primary
#251268
secondary
#88A036
accent
#ED3BC6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #251268

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

Preview Lab → · Contrast checker → · Palette generator →

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