#251884#251884

#251884 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.167 H 276.6°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#251884
RGBrgb(37, 24, 132)
HSLhsl(247, 69%, 31%)
HSVhsv(247, 82%, 52%)
CMYKcmyk(72%, 81.8%, 0%, 48.2%)
CIE-LABlab(18.85, 40.23, -57.40)
CIE-LCHlch(18.85, 70.10, 305.03°)
OKLaboklab(31.83% 0.0191 -0.1659)
OKLCHoklch(31.83% 0.167 276.6)
XYZxyz(5.2531, 2.7120, 22.0720)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251884 #778418
analogous
#184184 #251884 #5B1884
triadic
#251884 #842518 #188425
tetradic
#251884 #841841 #778418 #18845B
square
#251884 #841841 #778418 #18845B
split-complementary
#251884 #845B18 #418418
monochromatic
#08051C #160F50 #251884 #3421B8 #4E3BDB

Accessibility & contrast

On white

13.61
#251884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#251884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251884
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251884#FFFFFF#000000##FFFFFF
##2518841.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002982
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #251884;
/* rgb */ color: rgb(37, 24, 132);
/* oklch */ color: oklch(31.8% 0.167 276.6);
Tailwind
colors: {
  custom: {
    50: '#7058a9',
    500: '#251884',
    950: '#000000',
  },
}
SCSS
$custom: #251884;
$custom-light: #7058a9;
$custom-dark: #000000;
JSON
{
  "hex": "#251884",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 247.222,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31827,
    "c": 0.16699,
    "h": 276.6
  },
  "luminance": 0.02713
}

Semantic roles & 50–950 ramp

primary
#251884
secondary
#A9B840
accent
#EC3CD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251884

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

Preview Lab → · Contrast checker → · Palette generator →

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