#251687#251687

#251687 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.172 H 276.3°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#251687
RGBrgb(37, 22, 135)
HSLhsl(248, 72%, 31%)
HSVhsv(248, 84%, 53%)
CMYKcmyk(72.6%, 83.7%, 0%, 47.1%)
CIE-LABlab(18.87, 42.18, -59.26)
CIE-LCHlch(18.87, 72.74, 305.44°)
OKLaboklab(31.94% 0.0191 -0.1713)
OKLCHoklch(31.94% 0.172 276.3)
XYZxyz(5.4216, 2.7159, 23.1555)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251687 #788716
analogous
#163F87 #251687 #5D1687
triadic
#251687 #872516 #168725
tetradic
#251687 #87163F #788716 #16875D
square
#251687 #87163F #788716 #16875D
split-complementary
#251687 #875D16 #3F8716
monochromatic
#08051E #170D52 #251687 #331FBC #4F39DF

Accessibility & contrast

On white

13.61
#251687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#251687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251687
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251687#FFFFFF#000000##FFFFFF
##2516871.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #251687;
/* rgb */ color: rgb(37, 22, 135);
/* oklch */ color: oklch(31.9% 0.172 276.3);
Tailwind
colors: {
  custom: {
    50: '#7157ab',
    500: '#251687',
    950: '#000000',
  },
}
SCSS
$custom: #251687;
$custom-light: #7157ab;
$custom-dark: #000000;
JSON
{
  "hex": "#251687",
  "rgb": {
    "r": 37,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 247.965,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31943,
    "c": 0.17234,
    "h": 276.3
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#251687
secondary
#AABB3E
accent
#EF39D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251687

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

Preview Lab → · Contrast checker → · Palette generator →

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