#251476#251476

#251476 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.153 H 279.5°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#251476
RGBrgb(37, 20, 118)
HSLhsl(250, 71%, 27%)
HSVhsv(250, 83%, 46%)
CMYKcmyk(68.6%, 83.1%, 0%, 53.7%)
CIE-LABlab(16.51, 37.78, -52.35)
CIE-LCHlch(16.51, 64.56, 305.82°)
OKLaboklab(29.72% 0.0253 -0.1511)
OKLCHoklch(29.72% 0.153 279.5)
XYZxyz(4.2821, 2.2013, 17.3353)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251476 #657614
analogous
#143476 #251476 #561476
triadic
#251476 #762514 #147625
tetradic
#251476 #761434 #657614 #147656
square
#251476 #761434 #657614 #147656
split-complementary
#251476 #765614 #347614
monochromatic
#08041A #150B42 #251476 #351DAA #482ADB

Accessibility & contrast

On white

14.58
#251476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#251476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251476
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251476#FFFFFF#000000##FFFFFF
##2514761.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #251476;
/* rgb */ color: rgb(37, 20, 118);
/* oklch */ color: oklch(29.7% 0.153 279.5);
Tailwind
colors: {
  custom: {
    50: '#6d559f',
    500: '#251476',
    950: '#000000',
  },
}
SCSS
$custom: #251476;
$custom-light: #6d559f;
$custom-dark: #000000;
JSON
{
  "hex": "#251476",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 250.408,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29717,
    "c": 0.15324,
    "h": 279.5
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#251476
secondary
#98AC3A
accent
#EE3ACF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #251476

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

Preview Lab → · Contrast checker → · Palette generator →

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