#251C8A#251C8A

#251C8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.171 H 275.2°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#251C8A
RGBrgb(37, 28, 138)
HSLhsl(245, 66%, 33%)
HSVhsv(245, 80%, 54%)
CMYKcmyk(73.2%, 79.7%, 0%, 45.9%)
CIE-LABlab(20.28, 40.08, -58.81)
CIE-LCHlch(20.28, 71.17, 304.27°)
OKLaboklab(33.03% 0.0156 -0.1701)
OKLCHoklch(33.03% 0.171 275.2)
XYZxyz(5.7641, 3.0582, 24.3264)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251C8A #818A1C
analogous
#1C4A8A #251C8A #5C1C8A
triadic
#251C8A #8A251C #1C8A25
tetradic
#251C8A #8A1C4A #818A1C #1C8A5C
square
#251C8A #8A1C4A #818A1C #1C8A5C
split-complementary
#251C8A #8A5C1C #4A8A1C
monochromatic
#0A0724 #171257 #251C8A #3326BD #5347DA

Accessibility & contrast

On white

13.03
#251C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#251C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251C8A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251C8A#FFFFFF#000000##FFFFFF
##251C8A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251c8a;
/* rgb */ color: rgb(37, 28, 138);
/* oklch */ color: oklch(33.0% 0.171 275.2);
Tailwind
colors: {
  custom: {
    50: '#715bad',
    500: '#251c8a',
    950: '#000000',
  },
}
SCSS
$custom: #251c8a;
$custom-light: #715bad;
$custom-dark: #000000;
JSON
{
  "hex": "#251c8a",
  "rgb": {
    "r": 37,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 244.909,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33026,
    "c": 0.17078,
    "h": 275.2
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#251C8A
secondary
#B2BB46
accent
#E93FDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #251C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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