#251D8A#251D8A

#251D8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.170 H 275.1°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#251D8A
RGBrgb(37, 29, 138)
HSLhsl(244, 65%, 33%)
HSVhsv(244, 79%, 54%)
CMYKcmyk(73.2%, 79%, 0%, 45.9%)
CIE-LABlab(20.47, 39.54, -58.50)
CIE-LCHlch(20.47, 70.61, 304.05°)
OKLaboklab(33.16% 0.0151 -0.1692)
OKLCHoklch(33.16% 0.17 275.1)
XYZxyz(5.7882, 3.1065, 24.3344)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251D8A #828A1D
analogous
#1D4B8A #251D8A #5C1D8A
triadic
#251D8A #8A251D #1D8A25
tetradic
#251D8A #8A1D4B #828A1D #1D8A5C
square
#251D8A #8A1D4B #828A1D #1D8A5C
split-complementary
#251D8A #8A5C1D #4B8A1D
monochromatic
#0A0825 #171257 #251D8A #3328BD #5349D9

Accessibility & contrast

On white

12.95
#251D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#251D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251D8A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251D8A#FFFFFF#000000##FFFFFF
##251D8A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #251d8a;
/* rgb */ color: rgb(37, 29, 138);
/* oklch */ color: oklch(33.2% 0.170 275.1);
Tailwind
colors: {
  custom: {
    50: '#715bad',
    500: '#251d8a',
    950: '#000000',
  },
}
SCSS
$custom: #251d8a;
$custom-light: #715bad;
$custom-dark: #000000;
JSON
{
  "hex": "#251d8a",
  "rgb": {
    "r": 37,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 244.404,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33159,
    "c": 0.16985,
    "h": 275.1
  },
  "luminance": 0.03107
}

Semantic roles & 50–950 ramp

primary
#251D8A
secondary
#B2BB48
accent
#E840DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #251D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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