#250540#250540

#250540 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.103 H 303.2°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#250540
RGBrgb(37, 5, 64)
HSLhsl(273, 86%, 14%)
HSVhsv(273, 92%, 25%)
CMYKcmyk(42.2%, 92.2%, 0%, 74.9%)
CIE-LABlab(7.88, 28.92, -30.10)
CIE-LCHlch(7.88, 41.74, 313.86°)
OKLaboklab(21.92% 0.0563 -0.0859)
OKLCHoklch(21.92% 0.103 303.2)
XYZxyz(1.7424, 0.8720, 4.9260)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#250540 #204005
analogous
#070540 #250540 #40053D
triadic
#250540 #402505 #054025
tetradic
#250540 #400705 #204005 #053D40
square
#250540 #400705 #204005 #053D40
split-complementary
#250540 #3D4005 #054007
monochromatic
#10021C #10021C #250540 #460979 #670EB2

Accessibility & contrast

On white

17.88
#250540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#250540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #250540
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##250540#FFFFFF#000000##FFFFFF
##2505401.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#1F1523
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #250540;
/* rgb */ color: rgb(37, 5, 64);
/* oklch */ color: oklch(21.9% 0.103 303.2);
Tailwind
colors: {
  custom: {
    50: '#634975',
    500: '#250540',
    950: '#000000',
  },
}
SCSS
$custom: #250540;
$custom-light: #634975;
$custom-dark: #000000;
JSON
{
  "hex": "#250540",
  "rgb": {
    "r": 37,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 272.542,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21915,
    "c": 0.10274,
    "h": 303.2
  },
  "luminance": 0.00872
}

Semantic roles & 50–950 ramp

primary
#250540
secondary
#4C8120
accent
#FC2C8B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #250540

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

Preview Lab → · Contrast checker → · Palette generator →

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