#251798#251798

#251798 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.192 H 274.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#251798
RGBrgb(37, 23, 152)
HSLhsl(247, 74%, 34%)
HSVhsv(247, 85%, 60%)
CMYKcmyk(75.7%, 84.9%, 0%, 40.4%)
CIE-LABlab(21.10, 46.98, -66.14)
CIE-LCHlch(21.10, 81.12, 305.39°)
OKLaboklab(34.09% 0.0137 -0.1912)
OKLCHoklch(34.09% 0.192 274.1)
XYZxyz(6.7350, 3.2724, 29.9764)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251798 #8A9817
analogous
#174998 #251798 #661798
triadic
#251798 #982517 #179825
tetradic
#251798 #981749 #8A9817 #179866
square
#251798 #981749 #8A9817 #179866
split-complementary
#251798 #986617 #499817
monochromatic
#0B072E #180F63 #251798 #321FCD #5746E3

Accessibility & contrast

On white

12.69
#251798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251798
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251798#FFFFFF#000000##FFFFFF
##2517981.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #251798;
/* rgb */ color: rgb(37, 23, 152);
/* oklch */ color: oklch(34.1% 0.192 274.1);
Tailwind
colors: {
  custom: {
    50: '#7559b8',
    500: '#251798',
    950: '#000000',
  },
}
SCSS
$custom: #251798;
$custom-light: #7559b8;
$custom-dark: #000000;
JSON
{
  "hex": "#251798",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 246.512,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34086,
    "c": 0.19172,
    "h": 274.1
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#251798
secondary
#B7C447
accent
#F037DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #251798

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

Preview Lab → · Contrast checker → · Palette generator →

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