#251671#251671

#251671 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.145 H 280.2°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#251671
RGBrgb(37, 22, 113)
HSLhsl(250, 67%, 26%)
HSVhsv(250, 81%, 44%)
CMYKcmyk(67.3%, 80.5%, 0%, 55.7%)
CIE-LABlab(16.30, 35.12, -49.46)
CIE-LCHlch(16.30, 60.66, 305.37°)
OKLaboklab(29.4% 0.0256 -0.1428)
OKLCHoklch(29.4% 0.145 280.2)
XYZxyz(4.0295, 2.1591, 15.8240)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251671 #627116
analogous
#163571 #251671 #531671
triadic
#251671 #712516 #167125
tetradic
#251671 #711635 #627116 #167153
square
#251671 #711635 #627116 #167153
split-complementary
#251671 #715316 #357116
monochromatic
#08051A #140C3E #251671 #3620A4 #482CD6

Accessibility & contrast

On white

14.67
#251671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#251671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251671
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251671#FFFFFF#000000##FFFFFF
##2516711.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251671;
/* rgb */ color: rgb(37, 22, 113);
/* oklch */ color: oklch(29.4% 0.145 280.2);
Tailwind
colors: {
  custom: {
    50: '#6b569b',
    500: '#251671',
    950: '#000000',
  },
}
SCSS
$custom: #251671;
$custom-light: #6b569b;
$custom-dark: #000000;
JSON
{
  "hex": "#251671",
  "rgb": {
    "r": 37,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 249.89,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29402,
    "c": 0.14505,
    "h": 280.2
  },
  "luminance": 0.02159
}

Semantic roles & 50–950 ramp

primary
#251671
secondary
#95A73C
accent
#EA3ECE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251671

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

Preview Lab → · Contrast checker → · Palette generator →

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