#251585#251585

#251585 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.171 H 276.8°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#251585
RGBrgb(37, 21, 133)
HSLhsl(249, 73%, 30%)
HSVhsv(249, 84%, 52%)
CMYKcmyk(72.2%, 84.2%, 0%, 47.8%)
CIE-LABlab(18.46, 42.03, -58.67)
CIE-LCHlch(18.46, 72.17, 305.62°)
OKLaboklab(31.59% 0.0201 -0.1695)
OKLCHoklch(31.59% 0.171 276.8)
XYZxyz(5.2634, 2.6226, 22.4146)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251585 #758515
analogous
#153D85 #251585 #5D1585
triadic
#251585 #852515 #158525
tetradic
#251585 #85153D #758515 #15855D
square
#251585 #85153D #758515 #15855D
split-complementary
#251585 #855D15 #3D8515
monochromatic
#08041B #160D50 #251585 #341DBA #4E35DF

Accessibility & contrast

On white

13.77
#251585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#251585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251585
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251585#FFFFFF#000000##FFFFFF
##2515851.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003188
Deuteranopia (green-blind)
#002883
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #251585;
/* rgb */ color: rgb(37, 21, 133);
/* oklch */ color: oklch(31.6% 0.171 276.8);
Tailwind
colors: {
  custom: {
    50: '#7057aa',
    500: '#251585',
    950: '#000000',
  },
}
SCSS
$custom: #251585;
$custom-light: #7057aa;
$custom-dark: #000000;
JSON
{
  "hex": "#251585",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 133
  },
  "hsl": {
    "h": 248.571,
    "s": 72.727,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31594,
    "c": 0.17073,
    "h": 276.8
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#251585
secondary
#A8B93C
accent
#EF38D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251585

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

Preview Lab → · Contrast checker → · Palette generator →

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