#25158E#25158E

#25158E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.181 H 275.5°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#25158E
RGBrgb(37, 21, 142)
HSLhsl(248, 74%, 32%)
HSVhsv(248, 85%, 56%)
CMYKcmyk(73.9%, 85.2%, 0%, 44.3%)
CIE-LABlab(19.57, 44.81, -62.49)
CIE-LCHlch(19.57, 76.90, 305.64°)
OKLaboklab(32.67% 0.0173 -0.1806)
OKLCHoklch(32.67% 0.181 275.5)
XYZxyz(5.9120, 2.8821, 25.8307)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25158E #7E8E15
analogous
#15428E #25158E #62158E
triadic
#25158E #8E2515 #158E25
tetradic
#25158E #8E1542 #7E8E15 #158E62
square
#25158E #8E1542 #7E8E15 #158E62
split-complementary
#25158E #8E6215 #428E15
monochromatic
#090523 #170D59 #25158E #331DC3 #513BE2

Accessibility & contrast

On white

13.32
#25158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#25158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25158E
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25158E#FFFFFF#000000##FFFFFF
##25158E1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25158e;
/* rgb */ color: rgb(37, 21, 142);
/* oklch */ color: oklch(32.7% 0.181 275.5);
Tailwind
colors: {
  custom: {
    50: '#7257b0',
    500: '#25158e',
    950: '#000000',
  },
}
SCSS
$custom: #25158e;
$custom-light: #7257b0;
$custom-dark: #000000;
JSON
{
  "hex": "#25158e",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 247.934,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32671,
    "c": 0.18146,
    "h": 275.5
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #25158E

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

Preview Lab → · Contrast checker → · Palette generator →

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