#25178C#25178C

#25178C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.178 H 275.5°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#25178C
RGBrgb(37, 23, 140)
HSLhsl(247, 72%, 32%)
HSVhsv(247, 84%, 55%)
CMYKcmyk(73.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.63, 43.27, -61.13)
CIE-LCHlch(19.63, 74.89, 305.29°)
OKLaboklab(32.65% 0.0172 -0.1767)
OKLCHoklch(32.65% 0.178 275.5)
XYZxyz(5.8014, 2.8990, 25.0597)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25178C #7E8C17
analogous
#17448C #25178C #5F178C
triadic
#25178C #8C2517 #178C25
tetradic
#25178C #8C1744 #7E8C17 #178C5F
square
#25178C #8C1744 #7E8C17 #178C5F
split-complementary
#25178C #8C5F17 #448C17
monochromatic
#090623 #170E57 #25178C #3320C1 #513EDF

Accessibility & contrast

On white

13.29
#25178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#25178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25178C
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25178C#FFFFFF#000000##FFFFFF
##25178C1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #25178c;
/* rgb */ color: rgb(37, 23, 140);
/* oklch */ color: oklch(32.6% 0.178 275.5);
Tailwind
colors: {
  custom: {
    50: '#7258af',
    500: '#25178c',
    950: '#000000',
  },
}
SCSS
$custom: #25178c;
$custom-light: #7258af;
$custom-dark: #000000;
JSON
{
  "hex": "#25178c",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 247.179,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32648,
    "c": 0.17754,
    "h": 275.5
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#25178C
secondary
#B0BF3F
accent
#EF39D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #25178C

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

Preview Lab → · Contrast checker → · Palette generator →

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