#25157C#25157C

#25157C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.160 H 278.2°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#25157C
RGBrgb(37, 21, 124)
HSLhsl(249, 71%, 28%)
HSVhsv(249, 83%, 49%)
CMYKcmyk(70.2%, 83.1%, 0%, 51.4%)
CIE-LABlab(17.39, 39.19, -54.74)
CIE-LCHlch(17.39, 67.32, 305.60°)
OKLaboklab(30.53% 0.0229 -0.1581)
OKLCHoklch(30.53% 0.16 278.2)
XYZxyz(4.6680, 2.3845, 19.2791)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25157C #6C7C15
analogous
#15397C #25157C #58157C
triadic
#25157C #7C2515 #157C25
tetradic
#25157C #7C1539 #6C7C15 #157C58
square
#25157C #7C1539 #6C7C15 #157C58
split-complementary
#25157C #7C5815 #397C15
monochromatic
#08041A #150C48 #25157C #351EB0 #4A30DC

Accessibility & contrast

On white

14.22
#25157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25157C
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25157C#FFFFFF#000000##FFFFFF
##25157C1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #25157c;
/* rgb */ color: rgb(37, 21, 124);
/* oklch */ color: oklch(30.5% 0.160 278.2);
Tailwind
colors: {
  custom: {
    50: '#6e56a3',
    500: '#25157c',
    950: '#000000',
  },
}
SCSS
$custom: #25157c;
$custom-light: #6e56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#25157c",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 249.32,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30534,
    "c": 0.15978,
    "h": 278.2
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#25157C
secondary
#9FB13C
accent
#EE3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25157C

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

Preview Lab → · Contrast checker → · Palette generator →

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