#25179E#25179E

#25179E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.199 H 273.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#25179E
RGBrgb(37, 23, 158)
HSLhsl(246, 75%, 35%)
HSVhsv(246, 85%, 62%)
CMYKcmyk(76.6%, 85.4%, 0%, 38%)
CIE-LABlab(21.85, 48.79, -68.58)
CIE-LCHlch(21.85, 84.17, 305.43°)
OKLaboklab(34.81% 0.012 -0.1983)
OKLCHoklch(34.81% 0.199 273.5)
XYZxyz(7.2388, 3.4740, 32.6302)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25179E #909E17
analogous
#174D9E #25179E #68179E
triadic
#25179E #9E2517 #179E25
tetradic
#25179E #9E174D #909E17 #179E68
square
#25179E #9E174D #909E17 #179E68
split-complementary
#25179E #9E6817 #4D9E17
monochromatic
#0C0733 #180F69 #25179E #321FD3 #5B4BE5

Accessibility & contrast

On white

12.39
#25179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#25179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25179E
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25179E#FFFFFF#000000##FFFFFF
##25179E1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #25179e;
/* rgb */ color: rgb(37, 23, 158);
/* oklch */ color: oklch(34.8% 0.199 273.5);
Tailwind
colors: {
  custom: {
    50: '#765abc',
    500: '#25179e',
    950: '#000000',
  },
}
SCSS
$custom: #25179e;
$custom-light: #765abc;
$custom-dark: #000000;
JSON
{
  "hex": "#25179e",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 246.222,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34813,
    "c": 0.19867,
    "h": 273.5
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#25179E
secondary
#B9C64A
accent
#F137DE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #25179E

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

Preview Lab → · Contrast checker → · Palette generator →

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