#251252#251252

#251252 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.109 H 290.1°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#251252
RGBrgb(37, 18, 82)
HSLhsl(258, 64%, 20%)
HSVhsv(258, 78%, 32%)
CMYKcmyk(54.9%, 78%, 0%, 67.8%)
CIE-LABlab(12.19, 27.23, -35.60)
CIE-LCHlch(12.19, 44.82, 307.41°)
OKLaboklab(25.5% 0.0373 -0.1022)
OKLCHoklch(25.5% 0.109 290.1)
XYZxyz(2.5018, 1.4350, 8.1262)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251252 #3F5212
analogous
#121F52 #251252 #451252
triadic
#251252 #522512 #125225
tetradic
#251252 #52121F #3F5212 #125245
square
#251252 #52121F #3F5212 #125245
split-complementary
#251252 #524512 #1F5212
monochromatic
#0B0619 #0E0720 #251252 #3C1D84 #5228B6

Accessibility & contrast

On white

16.32
#251252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#251252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251252
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251252#FFFFFF#000000##FFFFFF
##2512521.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#152330
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #251252;
/* rgb */ color: rgb(37, 18, 82);
/* oklch */ color: oklch(25.5% 0.109 290.1);
Tailwind
colors: {
  custom: {
    50: '#655283',
    500: '#251252',
    950: '#000000',
  },
}
SCSS
$custom: #251252;
$custom-light: #655283;
$custom-dark: #000000;
JSON
{
  "hex": "#251252",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 257.813,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25504,
    "c": 0.10881,
    "h": 290.1
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#251252
secondary
#718B35
accent
#E741B6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #251252

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

Preview Lab → · Contrast checker → · Palette generator →

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