#251799#251799

#251799 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.193 H 274.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#251799
RGBrgb(37, 23, 153)
HSLhsl(246, 74%, 35%)
HSVhsv(246, 85%, 60%)
CMYKcmyk(75.8%, 85%, 0%, 40%)
CIE-LABlab(21.23, 47.28, -66.55)
CIE-LCHlch(21.23, 81.63, 305.39°)
OKLaboklab(34.21% 0.0134 -0.1924)
OKLCHoklch(34.21% 0.193 274)
XYZxyz(6.8172, 3.3053, 30.4095)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251799 #8B9917
analogous
#174A99 #251799 #661799
triadic
#251799 #992517 #179925
tetradic
#251799 #99174A #8B9917 #179966
square
#251799 #99174A #8B9917 #179966
split-complementary
#251799 #996617 #4A9917
monochromatic
#0B072F #180F64 #251799 #321FCE #5847E3

Accessibility & contrast

On white

12.64
#251799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#251799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251799
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251799#FFFFFF#000000##FFFFFF
##2517991.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399C
Deuteranopia (green-blind)
#002D97
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #251799;
/* rgb */ color: rgb(37, 23, 153);
/* oklch */ color: oklch(34.2% 0.193 274.0);
Tailwind
colors: {
  custom: {
    50: '#7559b8',
    500: '#251799',
    950: '#000000',
  },
}
SCSS
$custom: #251799;
$custom-light: #7559b8;
$custom-dark: #000000;
JSON
{
  "hex": "#251799",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 153
  },
  "hsl": {
    "h": 246.462,
    "s": 73.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34206,
    "c": 0.19289,
    "h": 274
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#251799
secondary
#B7C547
accent
#F137DD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #251799

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

Preview Lab → · Contrast checker → · Palette generator →

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