#25178F#25178F

#25178F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.181 H 275.2°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#25178F
RGBrgb(37, 23, 143)
HSLhsl(247, 72%, 33%)
HSVhsv(247, 84%, 56%)
CMYKcmyk(74.1%, 83.9%, 0%, 43.9%)
CIE-LABlab(20.00, 44.20, -62.39)
CIE-LCHlch(20.00, 76.47, 305.31°)
OKLaboklab(33.01% 0.0163 -0.1804)
OKLCHoklch(33.01% 0.181 275.2)
XYZxyz(6.0256, 2.9887, 26.2406)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25178F #818F17
analogous
#17458F #25178F #61178F
triadic
#25178F #8F2517 #178F25
tetradic
#25178F #8F1745 #818F17 #178F61
square
#25178F #8F1745 #818F17 #178F61
split-complementary
#25178F #8F6117 #458F17
monochromatic
#0A0626 #170F5A #25178F #331FC4 #5340E0

Accessibility & contrast

On white

13.14
#25178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#25178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25178F
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25178F#FFFFFF#000000##FFFFFF
##25178F1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #25178f;
/* rgb */ color: rgb(37, 23, 143);
/* oklch */ color: oklch(33.0% 0.181 275.2);
Tailwind
colors: {
  custom: {
    50: '#7258b1',
    500: '#25178f',
    950: '#000000',
  },
}
SCSS
$custom: #25178f;
$custom-light: #7258b1;
$custom-dark: #000000;
JSON
{
  "hex": "#25178f",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 247,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33005,
    "c": 0.18112,
    "h": 275.2
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#25178F
secondary
#B2C141
accent
#EF39DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #25178F

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

Preview Lab → · Contrast checker → · Palette generator →

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