#25179D#25179D

#25179D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.7% C 0.198 H 273.6°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#25179D
RGBrgb(37, 23, 157)
HSLhsl(246, 74%, 35%)
HSVhsv(246, 85%, 62%)
CMYKcmyk(76.4%, 85.4%, 0%, 38.4%)
CIE-LABlab(21.73, 48.49, -68.18)
CIE-LCHlch(21.73, 83.66, 305.42°)
OKLaboklab(34.69% 0.0122 -0.1971)
OKLCHoklch(34.69% 0.198 273.6)
XYZxyz(7.1531, 3.4397, 32.1787)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25179D #8F9D17
analogous
#174C9D #25179D #68179D
triadic
#25179D #9D2517 #179D25
tetradic
#25179D #9D174C #8F9D17 #179D68
square
#25179D #9D174C #8F9D17 #179D68
split-complementary
#25179D #9D6817 #4C9D17
monochromatic
#0C0732 #180F68 #25179D #321FD2 #5A4AE4

Accessibility & contrast

On white

12.44
#25179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#25179D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25179D
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25179D#FFFFFF#000000##FFFFFF
##25179D1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002E9B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #25179d;
/* rgb */ color: rgb(37, 23, 157);
/* oklch */ color: oklch(34.7% 0.198 273.6);
Tailwind
colors: {
  custom: {
    50: '#765abb',
    500: '#25179d',
    950: '#000000',
  },
}
SCSS
$custom: #25179d;
$custom-light: #765abb;
$custom-dark: #000000;
JSON
{
  "hex": "#25179d",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 246.269,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34691,
    "c": 0.19752,
    "h": 273.6
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#25179D
secondary
#B9C64A
accent
#F137DE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #25179D

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

Preview Lab → · Contrast checker → · Palette generator →

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