#251237#251237

#251237 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.071 H 305.2°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#251237
RGBrgb(37, 18, 55)
HSLhsl(271, 51%, 14%)
HSVhsv(271, 67%, 22%)
CMYKcmyk(32.7%, 67.3%, 0%, 78.4%)
CIE-LABlab(9.81, 18.69, -20.50)
CIE-LCHlch(9.81, 27.74, 312.36°)
OKLaboklab(23.05% 0.0408 -0.0578)
OKLCHoklch(23.05% 0.071 305.2)
XYZxyz(1.6687, 1.1018, 3.7384)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251237 #243712
analogous
#131237 #251237 #371237
triadic
#251237 #372512 #123725
tetradic
#251237 #371312 #243712 #123737
square
#251237 #371312 #243712 #123737
split-complementary
#251237 #373712 #123713
monochromatic
#100817 #100817 #251237 #442165 #633093

Accessibility & contrast

On white

17.21
#251237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#251237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251237
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251237#FFFFFF#000000##FFFFFF
##2512371.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041B38
Deuteranopia (green-blind)
#0B1B36
Tritanopia (blue-blind)
#221922
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #251237;
/* rgb */ color: rgb(37, 18, 55);
/* oklch */ color: oklch(23.0% 0.071 305.2);
Tailwind
colors: {
  custom: {
    50: '#61506e',
    500: '#251237',
    950: '#000000',
  },
}
SCSS
$custom: #251237;
$custom-light: #61506e;
$custom-dark: #000000;
JSON
{
  "hex": "#251237",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 270.811,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23045,
    "c": 0.07079,
    "h": 305.2
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#251237
secondary
#527035
accent
#DA4E92
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #251237

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

Preview Lab → · Contrast checker → · Palette generator →

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