#251797#251797

#251797 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 34.0% C 0.191 H 274.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#251797
RGBrgb(37, 23, 151)
HSLhsl(247, 74%, 34%)
HSVhsv(247, 85%, 59%)
CMYKcmyk(75.5%, 84.8%, 0%, 40.8%)
CIE-LABlab(20.98, 46.67, -65.73)
CIE-LCHlch(20.98, 80.61, 305.38°)
OKLaboklab(33.97% 0.014 -0.19)
OKLCHoklch(33.97% 0.191 274.2)
XYZxyz(6.6534, 3.2398, 29.5469)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251797 #899717
analogous
#174997 #251797 #651797
triadic
#251797 #972517 #179725
tetradic
#251797 #971749 #899717 #179765
square
#251797 #971749 #899717 #179765
split-complementary
#251797 #976517 #499717
monochromatic
#0B072D #180F62 #251797 #321FCC #5746E3

Accessibility & contrast

On white

12.74
#251797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#251797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251797
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251797#FFFFFF#000000##FFFFFF
##2517971.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389A
Deuteranopia (green-blind)
#002C95
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #251797;
/* rgb */ color: rgb(37, 23, 151);
/* oklch */ color: oklch(34.0% 0.191 274.2);
Tailwind
colors: {
  custom: {
    50: '#7459b7',
    500: '#251797',
    950: '#000000',
  },
}
SCSS
$custom: #251797;
$custom-light: #7459b7;
$custom-dark: #000000;
JSON
{
  "hex": "#251797",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 246.563,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33965,
    "c": 0.19055,
    "h": 274.2
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#251797
secondary
#B6C446
accent
#F038DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #251797

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

Preview Lab → · Contrast checker → · Palette generator →

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