#251C8D#251C8D

#251C8D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.174 H 274.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#251C8D
RGBrgb(37, 28, 141)
HSLhsl(245, 67%, 33%)
HSVhsv(245, 80%, 55%)
CMYKcmyk(73.8%, 80.1%, 0%, 44.7%)
CIE-LABlab(20.62, 41.07, -60.12)
CIE-LCHlch(20.62, 72.80, 304.34°)
OKLaboklab(33.37% 0.0149 -0.1739)
OKLCHoklch(33.37% 0.174 274.9)
XYZxyz(5.9843, 3.1463, 25.4861)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251C8D #848D1C
analogous
#1C4B8D #251C8D #5D1C8D
triadic
#251C8D #8D251C #1C8D25
tetradic
#251C8D #8D1C4B #848D1C #1C8D5D
square
#251C8D #8D1C4B #848D1C #1C8D5D
split-complementary
#251C8D #8D5D1C #4B8D1C
monochromatic
#0A0827 #18125A #251C8D #3226C0 #5449DB

Accessibility & contrast

On white

12.89
#251C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#251C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251C8D
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251C8D#FFFFFF#000000##FFFFFF
##251C8D1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251c8d;
/* rgb */ color: rgb(37, 28, 141);
/* oklch */ color: oklch(33.4% 0.174 274.9);
Tailwind
colors: {
  custom: {
    50: '#715bb0',
    500: '#251c8d',
    950: '#000000',
  },
}
SCSS
$custom: #251c8d;
$custom-light: #715bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#251c8d",
  "rgb": {
    "r": 37,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 244.779,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33368,
    "c": 0.17449,
    "h": 274.9
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#251C8D
secondary
#B3BD48
accent
#EA3EDC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #251C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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