#25157D#25157D

#25157D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.161 H 278.1°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#25157D
RGBrgb(37, 21, 125)
HSLhsl(249, 71%, 29%)
HSVhsv(249, 83%, 49%)
CMYKcmyk(70.4%, 83.2%, 0%, 51%)
CIE-LABlab(17.51, 39.51, -55.18)
CIE-LCHlch(17.51, 67.87, 305.60°)
OKLaboklab(30.65% 0.0226 -0.1594)
OKLCHoklch(30.65% 0.161 278.1)
XYZxyz(4.7316, 2.4099, 19.6139)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25157D #6D7D15
analogous
#15397D #25157D #59157D
triadic
#25157D #7D2515 #157D25
tetradic
#25157D #7D1539 #6D7D15 #157D59
square
#25157D #7D1539 #6D7D15 #157D59
split-complementary
#25157D #7D5915 #397D15
monochromatic
#08041A #150C49 #25157D #351EB1 #4B30DC

Accessibility & contrast

On white

14.17
#25157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#25157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25157D
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25157D#FFFFFF#000000##FFFFFF
##25157D1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #25157d;
/* rgb */ color: rgb(37, 21, 125);
/* oklch */ color: oklch(30.7% 0.161 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e56a4',
    500: '#25157d',
    950: '#000000',
  },
}
SCSS
$custom: #25157d;
$custom-light: #6e56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#25157d",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 249.231,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30651,
    "c": 0.16101,
    "h": 278.1
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#25157D
secondary
#A0B23C
accent
#EE3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25157D

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

Preview Lab → · Contrast checker → · Palette generator →

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