#251D8D#251D8D

#251D8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.174 H 274.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#251D8D
RGBrgb(37, 29, 141)
HSLhsl(244, 66%, 33%)
HSVhsv(244, 79%, 55%)
CMYKcmyk(73.8%, 79.4%, 0%, 44.7%)
CIE-LABlab(20.81, 40.53, -59.81)
CIE-LCHlch(20.81, 72.25, 304.12°)
OKLaboklab(33.5% 0.0144 -0.173)
OKLCHoklch(33.5% 0.174 274.8)
XYZxyz(6.0084, 3.1945, 25.4941)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251D8D #858D1D
analogous
#1D4D8D #251D8D #5D1D8D
triadic
#251D8D #8D251D #1D8D25
tetradic
#251D8D #8D1D4D #858D1D #1D8D5D
square
#251D8D #8D1D4D #858D1D #1D8D5D
split-complementary
#251D8D #8D5D1D #4D8D1D
monochromatic
#0A0827 #18135A #251D8D #3227C0 #554BDA

Accessibility & contrast

On white

12.81
#251D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#251D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251D8D
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251D8D#FFFFFF#000000##FFFFFF
##251D8D1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #251d8d;
/* rgb */ color: rgb(37, 29, 141);
/* oklch */ color: oklch(33.5% 0.174 274.8);
Tailwind
colors: {
  custom: {
    50: '#715cb0',
    500: '#251d8d',
    950: '#000000',
  },
}
SCSS
$custom: #251d8d;
$custom-light: #715cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#251d8d",
  "rgb": {
    "r": 37,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 244.286,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33499,
    "c": 0.17357,
    "h": 274.8
  },
  "luminance": 0.03195
}

Semantic roles & 50–950 ramp

primary
#251D8D
secondary
#B4BC4A
accent
#E93FDD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #251D8D

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

Preview Lab → · Contrast checker → · Palette generator →

#251D8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva