#251672#251672

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

Color values

HEX#251672
RGBrgb(37, 22, 114)
HSLhsl(250, 68%, 27%)
HSVhsv(250, 81%, 45%)
CMYKcmyk(67.5%, 80.7%, 0%, 55.3%)
CIE-LABlab(16.41, 35.45, -49.92)
CIE-LCHlch(16.41, 61.23, 305.38°)
OKLaboklab(29.51% 0.0253 -0.1441)
OKLCHoklch(29.51% 0.146 280)
XYZxyz(4.0862, 2.1817, 16.1221)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251672 #637216
analogous
#163572 #251672 #531672
triadic
#251672 #722516 #167225
tetradic
#251672 #721635 #637216 #167253
square
#251672 #721635 #637216 #167253
split-complementary
#251672 #725316 #357216
monochromatic
#08051A #140C3F #251672 #3620A5 #482CD6

Accessibility & contrast

On white

14.62
#251672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251672
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251672#FFFFFF#000000##FFFFFF
##2516721.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #251672;
/* rgb */ color: rgb(37, 22, 114);
/* oklch */ color: oklch(29.5% 0.146 280.0);
Tailwind
colors: {
  custom: {
    50: '#6c569c',
    500: '#251672',
    950: '#000000',
  },
}
SCSS
$custom: #251672;
$custom-light: #6c569c;
$custom-dark: #000000;
JSON
{
  "hex": "#251672",
  "rgb": {
    "r": 37,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 249.783,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29514,
    "c": 0.14633,
    "h": 280
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#251672
secondary
#96A83C
accent
#EB3DCE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251672

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

Preview Lab → · Contrast checker → · Palette generator →

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