#25158C#25158C

#25158C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.179 H 275.7°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#25158C
RGBrgb(37, 21, 140)
HSLhsl(248, 74%, 32%)
HSVhsv(248, 85%, 55%)
CMYKcmyk(73.6%, 85%, 0%, 45.1%)
CIE-LABlab(19.32, 44.20, -61.65)
CIE-LCHlch(19.32, 75.86, 305.64°)
OKLaboklab(32.43% 0.0179 -0.1782)
OKLCHoklch(32.43% 0.179 275.7)
XYZxyz(5.7632, 2.8225, 25.0469)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25158C #7C8C15
analogous
#15418C #25158C #61158C
triadic
#25158C #8C2515 #158C25
tetradic
#25158C #8C1541 #7C8C15 #158C61
square
#25158C #8C1541 #7C8C15 #158C61
split-complementary
#25158C #8C6115 #418C15
monochromatic
#090522 #170D57 #25158C #331DC1 #503AE1

Accessibility & contrast

On white

13.42
#25158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#25158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25158C
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25158C#FFFFFF#000000##FFFFFF
##25158C1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #25158c;
/* rgb */ color: rgb(37, 21, 140);
/* oklch */ color: oklch(32.4% 0.179 275.7);
Tailwind
colors: {
  custom: {
    50: '#7257af',
    500: '#25158c',
    950: '#000000',
  },
}
SCSS
$custom: #25158c;
$custom-light: #7257af;
$custom-dark: #000000;
JSON
{
  "hex": "#25158c",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 248.067,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3243,
    "c": 0.17909,
    "h": 275.7
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#25158C
secondary
#AEC03D
accent
#F137D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #25158C

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

Preview Lab → · Contrast checker → · Palette generator →

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