#251786#251786

#251786 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.170 H 276.4°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#251786
RGBrgb(37, 23, 134)
HSLhsl(248, 71%, 31%)
HSVhsv(248, 83%, 53%)
CMYKcmyk(72.4%, 82.8%, 0%, 47.5%)
CIE-LABlab(18.91, 41.38, -58.55)
CIE-LCHlch(18.91, 71.70, 305.25°)
OKLaboklab(31.94% 0.0189 -0.1692)
OKLCHoklch(31.94% 0.17 276.4)
XYZxyz(5.3710, 2.7268, 22.7929)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251786 #788617
analogous
#174086 #251786 #5C1786
triadic
#251786 #862517 #178625
tetradic
#251786 #861740 #788617 #17865C
square
#251786 #861740 #788617 #17865C
split-complementary
#251786 #865C17 #408617
monochromatic
#08051E #170E52 #251786 #3320BA #4F3ADD

Accessibility & contrast

On white

13.59
#251786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#251786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251786
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251786#FFFFFF#000000##FFFFFF
##2517861.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002984
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #251786;
/* rgb */ color: rgb(37, 23, 134);
/* oklch */ color: oklch(31.9% 0.170 276.4);
Tailwind
colors: {
  custom: {
    50: '#7058aa',
    500: '#251786',
    950: '#000000',
  },
}
SCSS
$custom: #251786;
$custom-light: #7058aa;
$custom-dark: #000000;
JSON
{
  "hex": "#251786",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 247.568,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3194,
    "c": 0.1703,
    "h": 276.4
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#251786
secondary
#AABA3F
accent
#ED3AD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #251786

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

Preview Lab → · Contrast checker → · Palette generator →

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