#251877#251877

#251877 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.151 H 278.7°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#251877
RGBrgb(37, 24, 119)
HSLhsl(248, 66%, 28%)
HSVhsv(248, 80%, 47%)
CMYKcmyk(68.9%, 79.8%, 0%, 53.3%)
CIE-LABlab(17.36, 36.00, -51.59)
CIE-LCHlch(17.36, 62.90, 304.91°)
OKLaboklab(30.34% 0.0227 -0.149)
OKLCHoklch(30.34% 0.151 278.7)
XYZxyz(4.4183, 2.3781, 17.6754)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251877 #6A7718
analogous
#183A77 #251877 #551877
triadic
#251877 #772518 #187725
tetradic
#251877 #77183A #6A7718 #187755
square
#251877 #77183A #6A7718 #187755
split-complementary
#251877 #775518 #3A7718
monochromatic
#080519 #150E44 #251877 #3522AA #4A33D6

Accessibility & contrast

On white

14.23
#251877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#251877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251877
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251877#FFFFFF#000000##FFFFFF
##2518771.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #251877;
/* rgb */ color: rgb(37, 24, 119);
/* oklch */ color: oklch(30.3% 0.151 278.7);
Tailwind
colors: {
  custom: {
    50: '#6d579f',
    500: '#251877',
    950: '#000000',
  },
}
SCSS
$custom: #251877;
$custom-light: #6d579f;
$custom-dark: #000000;
JSON
{
  "hex": "#251877",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 248.211,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30343,
    "c": 0.15071,
    "h": 278.7
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#251877
secondary
#9DAC3F
accent
#E93ED2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #251877

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

Preview Lab → · Contrast checker → · Palette generator →

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