#251772#251772

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

Color values

HEX#251772
RGBrgb(37, 23, 114)
HSLhsl(249, 66%, 27%)
HSVhsv(249, 80%, 45%)
CMYKcmyk(67.5%, 79.8%, 0%, 55.3%)
CIE-LABlab(16.61, 34.89, -49.61)
CIE-LCHlch(16.61, 60.65, 305.12°)
OKLaboklab(29.65% 0.0247 -0.1432)
OKLCHoklch(29.65% 0.145 279.8)
XYZxyz(4.1056, 2.2207, 16.1286)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251772 #647217
analogous
#173772 #251772 #531772
triadic
#251772 #722517 #177225
tetradic
#251772 #721737 #647217 #177253
square
#251772 #721737 #647217 #177253
split-complementary
#251772 #725317 #377217
monochromatic
#080519 #140D3F #251772 #3621A5 #482ED5

Accessibility & contrast

On white

14.54
#251772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251772
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251772#FFFFFF#000000##FFFFFF
##2517721.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251772;
/* rgb */ color: rgb(37, 23, 114);
/* oklch */ color: oklch(29.6% 0.145 279.8);
Tailwind
colors: {
  custom: {
    50: '#6b569c',
    500: '#251772',
    950: '#000000',
  },
}
SCSS
$custom: #251772;
$custom-light: #6b569c;
$custom-dark: #000000;
JSON
{
  "hex": "#251772",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 249.231,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29648,
    "c": 0.14531,
    "h": 279.8
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#251772
secondary
#97A83D
accent
#E93ECF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251772

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

Preview Lab → · Contrast checker → · Palette generator →

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