#251771#251771

#251771 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.144 H 280.0°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#251771
RGBrgb(37, 23, 113)
HSLhsl(249, 66%, 27%)
HSVhsv(249, 80%, 44%)
CMYKcmyk(67.3%, 79.6%, 0%, 55.7%)
CIE-LABlab(16.49, 34.57, -49.14)
CIE-LCHlch(16.49, 60.08, 305.12°)
OKLaboklab(29.54% 0.025 -0.1418)
OKLCHoklch(29.54% 0.144 280)
XYZxyz(4.0490, 2.1980, 15.8305)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251771 #637117
analogous
#173671 #251771 #521771
triadic
#251771 #712517 #177125
tetradic
#251771 #711736 #637117 #177152
square
#251771 #711736 #637117 #177152
split-complementary
#251771 #715217 #367117
monochromatic
#080519 #140D3E #251771 #3621A4 #482ED4

Accessibility & contrast

On white

14.59
#251771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#251771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251771
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251771#FFFFFF#000000##FFFFFF
##2517711.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #251771;
/* rgb */ color: rgb(37, 23, 113);
/* oklch */ color: oklch(29.5% 0.144 280.0);
Tailwind
colors: {
  custom: {
    50: '#6b569b',
    500: '#251771',
    950: '#000000',
  },
}
SCSS
$custom: #251771;
$custom-light: #6b569b;
$custom-dark: #000000;
JSON
{
  "hex": "#251771",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 249.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29537,
    "c": 0.14403,
    "h": 280
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#251771
secondary
#96A73D
accent
#E93FCF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #251771

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

Preview Lab → · Contrast checker → · Palette generator →

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