#251979#251979

#251979 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.152 H 278.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#251979
RGBrgb(37, 25, 121)
HSLhsl(248, 66%, 29%)
HSVhsv(248, 79%, 47%)
CMYKcmyk(69.4%, 79.3%, 0%, 52.5%)
CIE-LABlab(17.78, 36.10, -52.18)
CIE-LCHlch(17.78, 63.45, 304.68°)
OKLaboklab(30.7% 0.0216 -0.1507)
OKLCHoklch(30.7% 0.152 278.1)
XYZxyz(4.5607, 2.4687, 18.3216)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251979 #6D7919
analogous
#193D79 #251979 #551979
triadic
#251979 #792519 #197925
tetradic
#251979 #79193D #6D7919 #197955
square
#251979 #79193D #6D7919 #197955
split-complementary
#251979 #795519 #3D7919
monochromatic
#080519 #150F46 #251979 #3523AC #4B37D6

Accessibility & contrast

On white

14.06
#251979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#251979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251979
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251979#FFFFFF#000000##FFFFFF
##2519791.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #251979;
/* rgb */ color: rgb(37, 25, 121);
/* oklch */ color: oklch(30.7% 0.152 278.1);
Tailwind
colors: {
  custom: {
    50: '#6d58a1',
    500: '#251979',
    950: '#000000',
  },
}
SCSS
$custom: #251979;
$custom-light: #6d58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#251979",
  "rgb": {
    "r": 37,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 247.5,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30703,
    "c": 0.15226,
    "h": 278.1
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#251979
secondary
#A0AE40
accent
#E93FD3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #251979

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

Preview Lab → · Contrast checker → · Palette generator →

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