#251796#251796

#251796 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.189 H 274.3°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#251796
RGBrgb(37, 23, 150)
HSLhsl(247, 73%, 34%)
HSVhsv(247, 85%, 59%)
CMYKcmyk(75.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.86, 46.36, -65.31)
CIE-LCHlch(20.86, 80.10, 305.37°)
OKLaboklab(33.84% 0.0143 -0.1888)
OKLCHoklch(33.84% 0.189 274.3)
XYZxyz(6.5725, 3.2074, 29.1210)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251796 #889617
analogous
#174996 #251796 #651796
triadic
#251796 #962517 #179625
tetradic
#251796 #961749 #889617 #179665
square
#251796 #961749 #889617 #179665
split-complementary
#251796 #966517 #499617
monochromatic
#0B072C #180F61 #251796 #321FCB #5645E2

Accessibility & contrast

On white

12.79
#251796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#251796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251796
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251796#FFFFFF#000000##FFFFFF
##2517961.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002C94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #251796;
/* rgb */ color: rgb(37, 23, 150);
/* oklch */ color: oklch(33.8% 0.189 274.3);
Tailwind
colors: {
  custom: {
    50: '#7459b6',
    500: '#251796',
    950: '#000000',
  },
}
SCSS
$custom: #251796;
$custom-light: #7459b6;
$custom-dark: #000000;
JSON
{
  "hex": "#251796",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 246.614,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.18939,
    "h": 274.3
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #251796

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

Preview Lab → · Contrast checker → · Palette generator →

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