#251CB4#251CB4

#251CB4 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 38.0% C 0.220 H 271.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#251CB4
RGBrgb(37, 28, 180)
HSLhsl(244, 73%, 41%)
HSVhsv(244, 84%, 71%)
CMYKcmyk(79.4%, 84.4%, 0%, 29.4%)
CIE-LABlab(25.31, 53.25, -76.12)
CIE-LCHlch(25.31, 92.90, 304.98°)
OKLaboklab(37.98% 0.005 -0.2202)
OKLCHoklch(37.98% 0.22 271.3)
XYZxyz(9.4136, 4.5180, 43.5471)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251CB4 #ABB41C
analogous
#1C5FB4 #251CB4 #711CB4
triadic
#251CB4 #B4251C #1CB425
tetradic
#251CB4 #B41C5F #ABB41C #1CB471
square
#251CB4 #B41C5F #ABB41C #1CB471
split-complementary
#251CB4 #B4711C #5FB41C
monochromatic
#0F0C4A #1A147F #251CB4 #392FDF #6B64E7

Accessibility & contrast

On white

11.03
#251CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#251CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251CB4
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251CB4#FFFFFF#000000##FFFFFF
##251CB41.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0034B2
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #251cb4;
/* rgb */ color: rgb(37, 28, 180);
/* oklch */ color: oklch(38.0% 0.220 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ecc',
    500: '#251cb4',
    950: '#000000',
  },
}
SCSS
$custom: #251cb4;
$custom-light: #7b5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#251cb4",
  "rgb": {
    "r": 37,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 243.553,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.37977,
    "c": 0.2203,
    "h": 271.3
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#251CB4
secondary
#C5CC60
accent
#F038E5
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #251CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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