#251241#251241

#251241 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.085 H 298.3°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#251241
RGBrgb(37, 18, 65)
HSLhsl(264, 57%, 16%)
HSVhsv(264, 72%, 25%)
CMYKcmyk(43.1%, 72.3%, 0%, 74.5%)
CIE-LABlab(10.61, 21.77, -26.36)
CIE-LCHlch(10.61, 34.18, 309.56°)
OKLaboklab(23.88% 0.0404 -0.075)
OKLCHoklch(23.88% 0.085 298.3)
XYZxyz(1.9331, 1.2076, 5.1312)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251241 #2E4112
analogous
#121741 #251241 #3D1241
triadic
#251241 #412512 #124125
tetradic
#251241 #411217 #2E4112 #12413D
square
#251241 #411217 #2E4112 #12413D
split-complementary
#251241 #413D12 #174112
monochromatic
#0E0718 #0E0718 #251241 #401F71 #5C2DA1

Accessibility & contrast

On white

16.91
#251241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#251241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251241
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251241#FFFFFF#000000##FFFFFF
##2512411.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#001C40
Tritanopia (blue-blind)
#1E1D27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #251241;
/* rgb */ color: rgb(37, 18, 65);
/* oklch */ color: oklch(23.9% 0.085 298.3);
Tailwind
colors: {
  custom: {
    50: '#625176',
    500: '#251241',
    950: '#000000',
  },
}
SCSS
$custom: #251241;
$custom-light: #625176;
$custom-dark: #000000;
JSON
{
  "hex": "#251241",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 264.255,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23884,
    "c": 0.08521,
    "h": 298.3
  },
  "luminance": 0.01208
}

Semantic roles & 50–950 ramp

primary
#251241
secondary
#5E7A35
accent
#E048A2
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #251241

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

Preview Lab → · Contrast checker → · Palette generator →

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