#251784#251784

#251784 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.168 H 276.7°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#251784
RGBrgb(37, 23, 132)
HSLhsl(248, 70%, 30%)
HSVhsv(248, 83%, 52%)
CMYKcmyk(72%, 82.6%, 0%, 48.2%)
CIE-LABlab(18.68, 40.74, -57.69)
CIE-LCHlch(18.68, 70.62, 305.23°)
OKLaboklab(31.71% 0.0195 -0.1667)
OKLCHoklch(31.71% 0.168 276.7)
XYZxyz(5.2328, 2.6716, 22.0652)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251784 #768417
analogous
#174084 #251784 #5B1784
triadic
#251784 #842517 #178425
tetradic
#251784 #841740 #768417 #17845B
square
#251784 #841740 #768417 #17845B
split-complementary
#251784 #845B17 #408417
monochromatic
#08051C #160E50 #251784 #3420B8 #4E39DC

Accessibility & contrast

On white

13.69
#251784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#251784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251784
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251784#FFFFFF#000000##FFFFFF
##2517841.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251784;
/* rgb */ color: rgb(37, 23, 132);
/* oklch */ color: oklch(31.7% 0.168 276.7);
Tailwind
colors: {
  custom: {
    50: '#7058a9',
    500: '#251784',
    950: '#000000',
  },
}
SCSS
$custom: #251784;
$custom-light: #7058a9;
$custom-dark: #000000;
JSON
{
  "hex": "#251784",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 247.706,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31706,
    "c": 0.16786,
    "h": 276.7
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#251784
secondary
#A9B83F
accent
#ED3BD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251784

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

Preview Lab → · Contrast checker → · Palette generator →

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