#251788#251788

#251788 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.173 H 276.1°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#251788
RGBrgb(37, 23, 136)
HSLhsl(247, 71%, 31%)
HSVhsv(247, 83%, 53%)
CMYKcmyk(72.8%, 83.1%, 0%, 46.7%)
CIE-LABlab(19.15, 42.01, -59.42)
CIE-LCHlch(19.15, 72.77, 305.26°)
OKLaboklab(32.17% 0.0184 -0.1718)
OKLCHoklch(32.17% 0.173 276.1)
XYZxyz(5.5118, 2.7832, 23.5345)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251788 #7A8817
analogous
#174188 #251788 #5D1788
triadic
#251788 #882517 #178825
tetradic
#251788 #881741 #7A8817 #17885D
square
#251788 #881741 #7A8817 #17885D
split-complementary
#251788 #885D17 #418817
monochromatic
#09051F #170E54 #251788 #3320BC #503BDE

Accessibility & contrast

On white

13.49
#251788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#251788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251788
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251788#FFFFFF#000000##FFFFFF
##2517881.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #251788;
/* rgb */ color: rgb(37, 23, 136);
/* oklch */ color: oklch(32.2% 0.173 276.1);
Tailwind
colors: {
  custom: {
    50: '#7158ac',
    500: '#251788',
    950: '#000000',
  },
}
SCSS
$custom: #251788;
$custom-light: #7158ac;
$custom-dark: #000000;
JSON
{
  "hex": "#251788",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 247.434,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32175,
    "c": 0.17273,
    "h": 276.1
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#251788
secondary
#ACBC3F
accent
#EE3AD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251788

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

Preview Lab → · Contrast checker → · Palette generator →

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