#251878#251878

#251878 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.152 H 278.5°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#251878
RGBrgb(37, 24, 120)
HSLhsl(248, 67%, 28%)
HSVhsv(248, 80%, 47%)
CMYKcmyk(69.2%, 80%, 0%, 52.9%)
CIE-LABlab(17.47, 36.32, -52.04)
CIE-LCHlch(17.47, 63.47, 304.91°)
OKLaboklab(30.46% 0.0224 -0.1503)
OKLCHoklch(30.46% 0.152 278.5)
XYZxyz(4.4787, 2.4023, 17.9933)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251878 #6B7818
analogous
#183B78 #251878 #551878
triadic
#251878 #782518 #187825
tetradic
#251878 #78183B #6B7818 #187855
square
#251878 #78183B #6B7818 #187855
split-complementary
#251878 #785518 #3B7818
monochromatic
#08051A #150E45 #251878 #3522AB #4A34D6

Accessibility & contrast

On white

14.18
#251878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251878
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251878#FFFFFF#000000##FFFFFF
##2518781.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251878;
/* rgb */ color: rgb(37, 24, 120);
/* oklch */ color: oklch(30.5% 0.152 278.5);
Tailwind
colors: {
  custom: {
    50: '#6d57a0',
    500: '#251878',
    950: '#000000',
  },
}
SCSS
$custom: #251878;
$custom-light: #6d57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#251878",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 248.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30455,
    "c": 0.15198,
    "h": 278.5
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#251878
secondary
#9EAD3F
accent
#EA3ED2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251878

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

Preview Lab → · Contrast checker → · Palette generator →

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