#251062#251062

#251062 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.132 H 285.1°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#251062
RGBrgb(37, 16, 98)
HSLhsl(255, 72%, 22%)
HSVhsv(255, 84%, 38%)
CMYKcmyk(62.2%, 83.7%, 0%, 61.6%)
CIE-LABlab(13.50, 33.47, -44.23)
CIE-LCHlch(13.50, 55.46, 307.12°)
OKLaboklab(26.95% 0.0343 -0.1274)
OKLCHoklch(26.95% 0.132 285.1)
XYZxyz(3.1522, 1.6455, 11.7044)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251062 #4D6210
analogous
#102462 #251062 #4E1062
triadic
#251062 #622510 #106225
tetradic
#251062 #621024 #4D6210 #10624E
square
#251062 #621024 #4D6210 #10624E
split-complementary
#251062 #624E10 #246210
monochromatic
#0A041A #11072D #251062 #391997 #4D21CB

Accessibility & contrast

On white

15.80
#251062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#251062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251062
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251062#FFFFFF#000000##FFFFFF
##2510621.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#002061
Tritanopia (blue-blind)
#032839
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #251062;
/* rgb */ color: rgb(37, 16, 98);
/* oklch */ color: oklch(26.9% 0.132 285.1);
Tailwind
colors: {
  custom: {
    50: '#695190',
    500: '#251062',
    950: '#000000',
  },
}
SCSS
$custom: #251062;
$custom-light: #695190;
$custom-dark: #000000;
JSON
{
  "hex": "#251062",
  "rgb": {
    "r": 37,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 255.366,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26946,
    "c": 0.13196,
    "h": 285.1
  },
  "luminance": 0.01646
}

Semantic roles & 50–950 ramp

primary
#251062
secondary
#809B33
accent
#EF39C0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #251062

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

Preview Lab → · Contrast checker → · Palette generator →

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