#25157A#25157A

#25157A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.157 H 278.6°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#25157A
RGBrgb(37, 21, 122)
HSLhsl(250, 71%, 28%)
HSVhsv(250, 83%, 48%)
CMYKcmyk(69.7%, 82.8%, 0%, 52.2%)
CIE-LABlab(17.15, 38.55, -53.85)
CIE-LCHlch(17.15, 66.23, 305.60°)
OKLaboklab(30.3% 0.0235 -0.1555)
OKLCHoklch(30.3% 0.157 278.6)
XYZxyz(4.5428, 2.3344, 18.6198)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25157A #6A7A15
analogous
#15377A #25157A #57157A
triadic
#25157A #7A2515 #157A25
tetradic
#25157A #7A1537 #6A7A15 #157A57
square
#25157A #7A1537 #6A7A15 #157A57
split-complementary
#25157A #7A5715 #377A15
monochromatic
#08041A #150C46 #25157A #351EAE #4A2EDB

Accessibility & contrast

On white

14.31
#25157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#25157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25157A
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25157A#FFFFFF#000000##FFFFFF
##25157A1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #25157a;
/* rgb */ color: rgb(37, 21, 122);
/* oklch */ color: oklch(30.3% 0.157 278.6);
Tailwind
colors: {
  custom: {
    50: '#6d56a2',
    500: '#25157a',
    950: '#000000',
  },
}
SCSS
$custom: #25157a;
$custom-light: #6d56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#25157a",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 249.505,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30301,
    "c": 0.1573,
    "h": 278.6
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#25157A
secondary
#9DAF3B
accent
#ED3AD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25157A

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

Preview Lab → · Contrast checker → · Palette generator →

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