#25179F#25179F

#25179F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.200 H 273.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#25179F
RGBrgb(37, 23, 159)
HSLhsl(246, 75%, 36%)
HSVhsv(246, 86%, 62%)
CMYKcmyk(76.7%, 85.5%, 0%, 37.6%)
CIE-LABlab(21.98, 49.10, -68.98)
CIE-LCHlch(21.98, 84.67, 305.44°)
OKLaboklab(34.94% 0.0117 -0.1995)
OKLCHoklch(34.94% 0.2 273.3)
XYZxyz(7.3253, 3.5085, 33.0853)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25179F #919F17
analogous
#174D9F #25179F #69179F
triadic
#25179F #9F2517 #179F25
tetradic
#25179F #9F174D #919F17 #179F69
square
#25179F #9F174D #919F17 #179F69
split-complementary
#25179F #9F6917 #4D9F17
monochromatic
#0C0834 #190F6A #25179F #311FD4 #5B4BE5

Accessibility & contrast

On white

12.34
#25179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#25179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25179F
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25179F#FFFFFF#000000##FFFFFF
##25179F1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#002E9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #25179f;
/* rgb */ color: rgb(37, 23, 159);
/* oklch */ color: oklch(34.9% 0.200 273.3);
Tailwind
colors: {
  custom: {
    50: '#765abd',
    500: '#25179f',
    950: '#000000',
  },
}
SCSS
$custom: #25179f;
$custom-light: #765abd;
$custom-dark: #000000;
JSON
{
  "hex": "#25179f",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 246.176,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34935,
    "c": 0.19982,
    "h": 273.3
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#25179F
secondary
#BAC74B
accent
#F136DE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #25179F

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

Preview Lab → · Contrast checker → · Palette generator →

#25179F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva