#251879#251879

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

Color values

HEX#251879
RGBrgb(37, 24, 121)
HSLhsl(248, 67%, 28%)
HSVhsv(248, 80%, 47%)
CMYKcmyk(69.4%, 80.2%, 0%, 52.5%)
CIE-LABlab(17.58, 36.65, -52.50)
CIE-LCHlch(17.58, 64.03, 304.92°)
OKLaboklab(30.57% 0.0221 -0.1516)
OKLCHoklch(30.57% 0.153 278.3)
XYZxyz(4.5397, 2.4267, 18.3146)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251879 #6C7918
analogous
#183B79 #251879 #551879
triadic
#251879 #792518 #187925
tetradic
#251879 #79183B #6C7918 #187955
square
#251879 #79183B #6C7918 #187955
split-complementary
#251879 #795518 #3B7918
monochromatic
#08051A #150E46 #251879 #3522AC #4A35D7

Accessibility & contrast

On white

14.14
#251879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251879
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251879#FFFFFF#000000##FFFFFF
##2518791.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #251879;
/* rgb */ color: rgb(37, 24, 121);
/* oklch */ color: oklch(30.6% 0.153 278.3);
Tailwind
colors: {
  custom: {
    50: '#6d57a1',
    500: '#251879',
    950: '#000000',
  },
}
SCSS
$custom: #251879;
$custom-light: #6d57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#251879",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 248.041,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30568,
    "c": 0.15325,
    "h": 278.3
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#251879
secondary
#9FAE3F
accent
#EA3ED3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251879

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

Preview Lab → · Contrast checker → · Palette generator →

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