#251270#251270

#251270 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.148 H 281.1°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#251270
RGBrgb(37, 18, 112)
HSLhsl(252, 72%, 25%)
HSVhsv(252, 84%, 44%)
CMYKcmyk(67%, 83.9%, 0%, 56.1%)
CIE-LABlab(15.46, 36.88, -50.19)
CIE-LCHlch(15.46, 62.29, 306.31°)
OKLaboklab(28.78% 0.0283 -0.1448)
OKLCHoklch(28.78% 0.148 281.1)
XYZxyz(3.9030, 1.9955, 15.5056)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251270 #5D7012
analogous
#122E70 #251270 #541270
triadic
#251270 #702512 #127025
tetradic
#251270 #70122E #5D7012 #127054
square
#251270 #70122E #5D7012 #127054
split-complementary
#251270 #705412 #2E7012
monochromatic
#09041A #140A3B #251270 #361AA5 #4823D9

Accessibility & contrast

On white

15.01
#251270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#251270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251270
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251270#FFFFFF#000000##FFFFFF
##2512701.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00236E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #251270;
/* rgb */ color: rgb(37, 18, 112);
/* oklch */ color: oklch(28.8% 0.148 281.1);
Tailwind
colors: {
  custom: {
    50: '#6b549a',
    500: '#251270',
    950: '#000000',
  },
}
SCSS
$custom: #251270;
$custom-light: #6b549a;
$custom-dark: #000000;
JSON
{
  "hex": "#251270",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 252.128,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28784,
    "c": 0.14759,
    "h": 281.1
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#251270
secondary
#90A737
accent
#EF39CA
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251270

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

Preview Lab → · Contrast checker → · Palette generator →

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