#251579#251579

#251579 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.156 H 278.8°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#251579
RGBrgb(37, 21, 121)
HSLhsl(250, 70%, 28%)
HSVhsv(250, 83%, 47%)
CMYKcmyk(69.4%, 82.6%, 0%, 52.5%)
CIE-LABlab(17.04, 38.24, -53.41)
CIE-LCHlch(17.04, 65.68, 305.60°)
OKLaboklab(30.19% 0.0238 -0.1542)
OKLCHoklch(30.19% 0.156 278.8)
XYZxyz(4.4812, 2.3097, 18.2951)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251579 #697915
analogous
#153779 #251579 #571579
triadic
#251579 #792515 #157925
tetradic
#251579 #791537 #697915 #157957
square
#251579 #791537 #697915 #157957
split-complementary
#251579 #795715 #377915
monochromatic
#08051A #150C45 #251579 #351EAD #492EDB

Accessibility & contrast

On white

14.36
#251579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#251579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251579
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251579#FFFFFF#000000##FFFFFF
##2515791.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002677
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #251579;
/* rgb */ color: rgb(37, 21, 121);
/* oklch */ color: oklch(30.2% 0.156 278.8);
Tailwind
colors: {
  custom: {
    50: '#6d56a1',
    500: '#251579',
    950: '#000000',
  },
}
SCSS
$custom: #251579;
$custom-light: #6d56a1;
$custom-dark: #000000;
JSON
{
  "hex": "#251579",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 249.6,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30186,
    "c": 0.15606,
    "h": 278.8
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#251579
secondary
#9CAF3B
accent
#ED3BD1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251579

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

Preview Lab → · Contrast checker → · Palette generator →

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