#251C8E#251C8E

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

Color values

HEX#251C8E
RGBrgb(37, 28, 142)
HSLhsl(245, 67%, 33%)
HSVhsv(245, 80%, 56%)
CMYKcmyk(73.9%, 80.3%, 0%, 44.3%)
CIE-LABlab(20.74, 41.39, -60.55)
CIE-LCHlch(20.74, 73.35, 304.36°)
OKLaboklab(33.48% 0.0146 -0.1751)
OKLCHoklch(33.48% 0.176 274.8)
XYZxyz(6.0591, 3.1762, 25.8797)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251C8E #858E1C
analogous
#1C4C8E #251C8E #5E1C8E
triadic
#251C8E #8E251C #1C8E25
tetradic
#251C8E #8E1C4C #858E1C #1C8E5E
square
#251C8E #8E1C4C #858E1C #1C8E5E
split-complementary
#251C8E #8E5E1C #4C8E1C
monochromatic
#0A0828 #18125B #251C8E #3226C1 #5549DB

Accessibility & contrast

On white

12.84
#251C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #251C8E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251C8E#FFFFFF#000000##FFFFFF
##251C8E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #251c8e;
/* rgb */ color: rgb(37, 28, 142);
/* oklch */ color: oklch(33.5% 0.176 274.8);
Tailwind
colors: {
  custom: {
    50: '#725bb0',
    500: '#251c8e',
    950: '#000000',
  },
}
SCSS
$custom: #251c8e;
$custom-light: #725bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#251c8e",
  "rgb": {
    "r": 37,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 244.737,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33483,
    "c": 0.17572,
    "h": 274.8
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #251C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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