#25157B#25157B

#25157B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.159 H 278.4°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#25157B
RGBrgb(37, 21, 123)
HSLhsl(249, 71%, 28%)
HSVhsv(249, 83%, 48%)
CMYKcmyk(69.9%, 82.9%, 0%, 51.8%)
CIE-LABlab(17.27, 38.87, -54.30)
CIE-LCHlch(17.27, 66.78, 305.60°)
OKLaboklab(30.42% 0.0232 -0.1568)
OKLCHoklch(30.42% 0.159 278.4)
XYZxyz(4.6051, 2.3593, 18.9478)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25157B #6B7B15
analogous
#15387B #25157B #58157B
triadic
#25157B #7B2515 #157B25
tetradic
#25157B #7B1538 #6B7B15 #157B58
square
#25157B #7B1538 #6B7B15 #157B58
split-complementary
#25157B #7B5815 #387B15
monochromatic
#08041A #150C47 #25157B #351EAF #4A2FDB

Accessibility & contrast

On white

14.27
#25157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25157B
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25157B#FFFFFF#000000##FFFFFF
##25157B1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25157b;
/* rgb */ color: rgb(37, 21, 123);
/* oklch */ color: oklch(30.4% 0.159 278.4);
Tailwind
colors: {
  custom: {
    50: '#6e56a2',
    500: '#25157b',
    950: '#000000',
  },
}
SCSS
$custom: #25157b;
$custom-light: #6e56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#25157b",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 249.412,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30418,
    "c": 0.15854,
    "h": 278.4
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#25157B
secondary
#9EB03B
accent
#EE3AD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25157B

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

Preview Lab → · Contrast checker → · Palette generator →

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