#251779#251779

#251779 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.154 H 278.5°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#251779
RGBrgb(37, 23, 121)
HSLhsl(249, 68%, 28%)
HSVhsv(249, 81%, 47%)
CMYKcmyk(69.4%, 81%, 0%, 52.5%)
CIE-LABlab(17.40, 37.19, -52.81)
CIE-LCHlch(17.40, 64.59, 305.16°)
OKLaboklab(30.44% 0.0227 -0.1525)
OKLCHoklch(30.44% 0.154 278.5)
XYZxyz(4.5194, 2.3862, 18.3079)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251779 #6B7917
analogous
#173A79 #251779 #561779
triadic
#251779 #792517 #177925
tetradic
#251779 #79173A #6B7917 #177956
square
#251779 #79173A #6B7917 #177956
split-complementary
#251779 #795617 #3A7917
monochromatic
#08051A #150D46 #251779 #3521AC #4A32D8

Accessibility & contrast

On white

14.21
#251779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#251779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251779
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251779#FFFFFF#000000##FFFFFF
##2517791.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #251779;
/* rgb */ color: rgb(37, 23, 121);
/* oklch */ color: oklch(30.4% 0.154 278.5);
Tailwind
colors: {
  custom: {
    50: '#6d57a1',
    500: '#251779',
    950: '#000000',
  },
}
SCSS
$custom: #251779;
$custom-light: #6d57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#251779",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 248.571,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30437,
    "c": 0.15421,
    "h": 278.5
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#251779
secondary
#9EAE3E
accent
#EB3DD2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251779

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

Preview Lab → · Contrast checker → · Palette generator →

#251779 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva