#25178B#25178B

#25178B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.176 H 275.7°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#25178B
RGBrgb(37, 23, 139)
HSLhsl(247, 72%, 32%)
HSVhsv(247, 83%, 55%)
CMYKcmyk(73.4%, 83.5%, 0%, 45.5%)
CIE-LABlab(19.51, 42.95, -60.70)
CIE-LCHlch(19.51, 74.36, 305.28°)
OKLaboklab(32.53% 0.0175 -0.1755)
OKLCHoklch(32.53% 0.176 275.7)
XYZxyz(5.7280, 2.8696, 24.6731)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25178B #7D8B17
analogous
#17438B #25178B #5F178B
triadic
#25178B #8B2517 #178B25
tetradic
#25178B #8B1743 #7D8B17 #178B5F
square
#25178B #8B1743 #7D8B17 #178B5F
split-complementary
#25178B #8B5F17 #438B17
monochromatic
#090622 #170E56 #25178B #3320C0 #513DDF

Accessibility & contrast

On white

13.34
#25178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#25178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25178B
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25178B#FFFFFF#000000##FFFFFF
##25178B1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #25178b;
/* rgb */ color: rgb(37, 23, 139);
/* oklch */ color: oklch(32.5% 0.176 275.7);
Tailwind
colors: {
  custom: {
    50: '#7158ae',
    500: '#25178b',
    950: '#000000',
  },
}
SCSS
$custom: #25178b;
$custom-light: #7158ae;
$custom-dark: #000000;
JSON
{
  "hex": "#25178b",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 247.241,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3253,
    "c": 0.17634,
    "h": 275.7
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#25178B
secondary
#AFBF3F
accent
#EE39D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #25178B

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

Preview Lab → · Contrast checker → · Palette generator →

#25178B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva