#25157E#25157E

#25157E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.8% C 0.162 H 277.9°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#25157E
RGBrgb(37, 21, 126)
HSLhsl(249, 71%, 29%)
HSVhsv(249, 83%, 49%)
CMYKcmyk(70.6%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.62, 39.83, -55.62)
CIE-LCHlch(17.62, 68.41, 305.60°)
OKLaboklab(30.77% 0.0223 -0.1607)
OKLCHoklch(30.77% 0.162 277.9)
XYZxyz(4.7958, 2.4356, 19.9520)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25157E #6E7E15
analogous
#153A7E #25157E #5A157E
triadic
#25157E #7E2515 #157E25
tetradic
#25157E #7E153A #6E7E15 #157E5A
square
#25157E #7E153A #6E7E15 #157E5A
split-complementary
#25157E #7E5A15 #3A7E15
monochromatic
#08041A #160C4A #25157E #341EB2 #4B31DD

Accessibility & contrast

On white

14.12
#25157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#25157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25157E
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25157E#FFFFFF#000000##FFFFFF
##25157E1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #25157e;
/* rgb */ color: rgb(37, 21, 126);
/* oklch */ color: oklch(30.8% 0.162 277.9);
Tailwind
colors: {
  custom: {
    50: '#6e56a5',
    500: '#25157e',
    950: '#000000',
  },
}
SCSS
$custom: #25157e;
$custom-light: #6e56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25157e",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 249.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30768,
    "c": 0.16223,
    "h": 277.9
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#25157E
secondary
#A1B33C
accent
#EE3AD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25157E

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

Preview Lab → · Contrast checker → · Palette generator →

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