#251C8F#251C8F

#251C8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.177 H 274.6°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#251C8F
RGBrgb(37, 28, 143)
HSLhsl(245, 67%, 34%)
HSVhsv(245, 80%, 56%)
CMYKcmyk(74.1%, 80.4%, 0%, 43.9%)
CIE-LABlab(20.85, 41.72, -60.98)
CIE-LCHlch(20.85, 73.88, 304.38°)
OKLaboklab(33.6% 0.0143 -0.1764)
OKLCHoklch(33.6% 0.177 274.6)
XYZxyz(6.1345, 3.2064, 26.2769)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251C8F #868F1C
analogous
#1C4C8F #251C8F #5E1C8F
triadic
#251C8F #8F251C #1C8F25
tetradic
#251C8F #8F1C4C #868F1C #1C8F5E
square
#251C8F #8F1C4C #868F1C #1C8F5E
split-complementary
#251C8F #8F5E1C #4C8F1C
monochromatic
#0B0829 #18125C #251C8F #3226C2 #554ADC

Accessibility & contrast

On white

12.79
#251C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251C8F
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251C8F#FFFFFF#000000##FFFFFF
##251C8F1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #251c8f;
/* rgb */ color: rgb(37, 28, 143);
/* oklch */ color: oklch(33.6% 0.177 274.6);
Tailwind
colors: {
  custom: {
    50: '#725bb1',
    500: '#251c8f',
    950: '#000000',
  },
}
SCSS
$custom: #251c8f;
$custom-light: #725bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#251c8f",
  "rgb": {
    "r": 37,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 244.696,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33598,
    "c": 0.17694,
    "h": 274.6
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#251C8F
secondary
#B4BE49
accent
#EA3EDD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #251C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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