#251872#251872

#251872 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.144 H 279.6°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#251872
RGBrgb(37, 24, 114)
HSLhsl(249, 65%, 27%)
HSVhsv(249, 79%, 45%)
CMYKcmyk(67.5%, 78.9%, 0%, 55.3%)
CIE-LABlab(16.80, 34.33, -49.28)
CIE-LCHlch(16.80, 60.06, 304.87°)
OKLaboklab(29.79% 0.024 -0.1423)
OKLCHoklch(29.79% 0.144 279.6)
XYZxyz(4.1259, 2.2612, 16.1353)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251872 #657218
analogous
#183872 #251872 #521872
triadic
#251872 #722518 #187225
tetradic
#251872 #721838 #657218 #187252
square
#251872 #721838 #657218 #187252
split-complementary
#251872 #725218 #387218
monochromatic
#080519 #150D3F #251872 #3523A5 #4831D4

Accessibility & contrast

On white

14.46
#251872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#251872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251872
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251872#FFFFFF#000000##FFFFFF
##2518721.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #251872;
/* rgb */ color: rgb(37, 24, 114);
/* oklch */ color: oklch(29.8% 0.144 279.6);
Tailwind
colors: {
  custom: {
    50: '#6b579c',
    500: '#251872',
    950: '#000000',
  },
}
SCSS
$custom: #251872;
$custom-light: #6b579c;
$custom-dark: #000000;
JSON
{
  "hex": "#251872",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 248.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29787,
    "c": 0.14429,
    "h": 279.6
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#251872
secondary
#98A73E
accent
#E840D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251872

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

Preview Lab → · Contrast checker → · Palette generator →

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