#25158D#25158D

#25158D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.180 H 275.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#25158D
RGBrgb(37, 21, 141)
HSLhsl(248, 74%, 32%)
HSVhsv(248, 85%, 55%)
CMYKcmyk(73.8%, 85.1%, 0%, 44.7%)
CIE-LABlab(19.44, 44.50, -62.07)
CIE-LCHlch(19.44, 76.38, 305.64°)
OKLaboklab(32.55% 0.0176 -0.1794)
OKLCHoklch(32.55% 0.18 275.6)
XYZxyz(5.8373, 2.8522, 25.4370)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25158D #7D8D15
analogous
#15418D #25158D #61158D
triadic
#25158D #8D2515 #158D25
tetradic
#25158D #8D1541 #7D8D15 #158D61
square
#25158D #8D1541 #7D8D15 #158D61
split-complementary
#25158D #8D6115 #418D15
monochromatic
#090522 #170D58 #25158D #331DC2 #513BE2

Accessibility & contrast

On white

13.37
#25158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#25158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25158D
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25158D#FFFFFF#000000##FFFFFF
##25158D1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #25158d;
/* rgb */ color: rgb(37, 21, 141);
/* oklch */ color: oklch(32.6% 0.180 275.6);
Tailwind
colors: {
  custom: {
    50: '#7257b0',
    500: '#25158d',
    950: '#000000',
  },
}
SCSS
$custom: #25158d;
$custom-light: #7257b0;
$custom-dark: #000000;
JSON
{
  "hex": "#25158d",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 248,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32551,
    "c": 0.18027,
    "h": 275.6
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#25158D
secondary
#AFC13D
accent
#F137D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #25158D

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

Preview Lab → · Contrast checker → · Palette generator →

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