#25178A#25178A

#25178A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.175 H 275.8°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#25178A
RGBrgb(37, 23, 138)
HSLhsl(247, 71%, 32%)
HSVhsv(247, 83%, 54%)
CMYKcmyk(73.2%, 83.3%, 0%, 45.9%)
CIE-LABlab(19.39, 42.64, -60.27)
CIE-LCHlch(19.39, 73.83, 305.28°)
OKLaboklab(32.41% 0.0178 -0.1742)
OKLCHoklch(32.41% 0.175 275.8)
XYZxyz(5.6553, 2.8405, 24.2901)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25178A #7C8A17
analogous
#17438A #25178A #5F178A
triadic
#25178A #8A2517 #178A25
tetradic
#25178A #8A1743 #7C8A17 #178A5F
square
#25178A #8A1743 #7C8A17 #178A5F
split-complementary
#25178A #8A5F17 #438A17
monochromatic
#090621 #170E56 #25178A #3320BE #503DDF

Accessibility & contrast

On white

13.39
#25178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25178A
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25178A#FFFFFF#000000##FFFFFF
##25178A1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #25178a;
/* rgb */ color: rgb(37, 23, 138);
/* oklch */ color: oklch(32.4% 0.175 275.8);
Tailwind
colors: {
  custom: {
    50: '#7158ad',
    500: '#25178a',
    950: '#000000',
  },
}
SCSS
$custom: #25178a;
$custom-light: #7158ad;
$custom-dark: #000000;
JSON
{
  "hex": "#25178a",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 247.304,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32411,
    "c": 0.17513,
    "h": 275.8
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#25178A
secondary
#AEBE3F
accent
#EE3AD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #25178A

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

Preview Lab → · Contrast checker → · Palette generator →

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