#251978#251978

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

Color values

HEX#251978
RGBrgb(37, 25, 120)
HSLhsl(248, 66%, 28%)
HSVhsv(248, 79%, 47%)
CMYKcmyk(69.2%, 79.2%, 0%, 52.9%)
CIE-LABlab(17.66, 35.77, -51.72)
CIE-LCHlch(17.66, 62.89, 304.67°)
OKLaboklab(30.59% 0.0218 -0.1494)
OKLCHoklch(30.59% 0.151 278.3)
XYZxyz(4.4997, 2.4443, 18.0003)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251978 #6C7819
analogous
#193C78 #251978 #541978
triadic
#251978 #782519 #197825
tetradic
#251978 #78193C #6C7819 #197854
square
#251978 #78193C #6C7819 #197854
split-complementary
#251978 #785419 #3C7819
monochromatic
#080519 #150E45 #251978 #3524AB #4A36D5

Accessibility & contrast

On white

14.10
#251978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#251978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251978
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251978#FFFFFF#000000##FFFFFF
##2519781.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251978;
/* rgb */ color: rgb(37, 25, 120);
/* oklch */ color: oklch(30.6% 0.151 278.3);
Tailwind
colors: {
  custom: {
    50: '#6d58a0',
    500: '#251978',
    950: '#000000',
  },
}
SCSS
$custom: #251978;
$custom-light: #6d58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#251978",
  "rgb": {
    "r": 37,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 247.579,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30592,
    "c": 0.15099,
    "h": 278.3
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#251978
secondary
#9FAD40
accent
#E83FD3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251978

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

Preview Lab → · Contrast checker → · Palette generator →

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