#25177E#25177E

#25177E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.160 H 277.6°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#25177E
RGBrgb(37, 23, 126)
HSLhsl(248, 69%, 29%)
HSVhsv(248, 82%, 49%)
CMYKcmyk(70.6%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.97, 38.82, -55.05)
CIE-LCHlch(17.97, 67.36, 305.19°)
OKLaboklab(31.01% 0.0213 -0.159)
OKLCHoklch(31.01% 0.16 277.6)
XYZxyz(4.8340, 2.5120, 19.9647)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25177E #707E17
analogous
#173D7E #25177E #59177E
triadic
#25177E #7E2517 #177E25
tetradic
#25177E #7E173D #707E17 #177E59
square
#25177E #7E173D #707E17 #177E59
split-complementary
#25177E #7E5917 #3D7E17
monochromatic
#08051A #160E4A #25177E #3420B2 #4C35DA

Accessibility & contrast

On white

13.98
#25177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#25177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25177E
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25177E#FFFFFF#000000##FFFFFF
##25177E1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #25177e;
/* rgb */ color: rgb(37, 23, 126);
/* oklch */ color: oklch(31.0% 0.160 277.6);
Tailwind
colors: {
  custom: {
    50: '#6e57a5',
    500: '#25177e',
    950: '#000000',
  },
}
SCSS
$custom: #25177e;
$custom-light: #6e57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25177e",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 248.155,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3101,
    "c": 0.16047,
    "h": 277.6
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#25177E
secondary
#A3B33E
accent
#EC3CD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25177E

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

Preview Lab → · Contrast checker → · Palette generator →

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