#251283#251283

#251283 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.171 H 277.4°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#251283
RGBrgb(37, 18, 131)
HSLhsl(250, 76%, 29%)
HSVhsv(250, 86%, 51%)
CMYKcmyk(71.8%, 86.3%, 0%, 48.6%)
CIE-LABlab(17.76, 42.78, -58.58)
CIE-LCHlch(17.76, 72.54, 306.14°)
OKLaboklab(31.04% 0.0219 -0.1692)
OKLCHoklch(31.04% 0.171 277.4)
XYZxyz(5.0747, 2.4642, 21.6765)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251283 #708312
analogous
#123883 #251283 #5E1283
triadic
#251283 #832512 #128325
tetradic
#251283 #831238 #708312 #12835E
square
#251283 #831238 #708312 #12835E
split-complementary
#251283 #835E12 #388312
monochromatic
#08041B #160B4D #251283 #3419B9 #4C2DE2

Accessibility & contrast

On white

14.07
#251283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#251283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251283
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251283#FFFFFF#000000##FFFFFF
##2512831.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003086
Deuteranopia (green-blind)
#002781
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #251283;
/* rgb */ color: rgb(37, 18, 131);
/* oklch */ color: oklch(31.0% 0.171 277.4);
Tailwind
colors: {
  custom: {
    50: '#7055a8',
    500: '#251283',
    950: '#000000',
  },
}
SCSS
$custom: #251283;
$custom-light: #7055a8;
$custom-dark: #000000;
JSON
{
  "hex": "#251283",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 250.088,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31035,
    "c": 0.17064,
    "h": 277.4
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#251283
secondary
#A3B838
accent
#F235D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251283

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

Preview Lab → · Contrast checker → · Palette generator →

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