#25158A#25158A

#25158A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.177 H 276.0°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#25158A
RGBrgb(37, 21, 138)
HSLhsl(248, 74%, 31%)
HSVhsv(248, 85%, 54%)
CMYKcmyk(73.2%, 84.8%, 0%, 45.9%)
CIE-LABlab(19.07, 43.58, -60.81)
CIE-LCHlch(19.07, 74.81, 305.63°)
OKLaboklab(32.19% 0.0185 -0.1757)
OKLCHoklch(32.19% 0.177 276)
XYZxyz(5.6171, 2.7641, 24.2773)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25158A #7A8A15
analogous
#153F8A #25158A #5F158A
triadic
#25158A #8A2515 #158A25
tetradic
#25158A #8A153F #7A8A15 #158A5F
square
#25158A #8A153F #7A8A15 #158A5F
split-complementary
#25158A #8A5F15 #3F8A15
monochromatic
#090520 #170D55 #25158A #331DBF #5039E1

Accessibility & contrast

On white

13.52
#25158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#25158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25158A
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25158A#FFFFFF#000000##FFFFFF
##25158A1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #25158a;
/* rgb */ color: rgb(37, 21, 138);
/* oklch */ color: oklch(32.2% 0.177 276.0);
Tailwind
colors: {
  custom: {
    50: '#7157ad',
    500: '#25158a',
    950: '#000000',
  },
}
SCSS
$custom: #25158a;
$custom-light: #7157ad;
$custom-dark: #000000;
JSON
{
  "hex": "#25158a",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 248.205,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3219,
    "c": 0.17671,
    "h": 276
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#25158A
secondary
#ACBE3D
accent
#F038D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #25158A

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

Preview Lab → · Contrast checker → · Palette generator →

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