#25187F#25187F

#25187F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.161 H 277.3°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#25187F
RGBrgb(37, 24, 127)
HSLhsl(248, 68%, 30%)
HSVhsv(248, 81%, 50%)
CMYKcmyk(70.9%, 81.1%, 0%, 50.2%)
CIE-LABlab(18.27, 38.62, -55.19)
CIE-LCHlch(18.27, 67.36, 304.98°)
OKLaboklab(31.25% 0.0205 -0.1595)
OKLCHoklch(31.25% 0.161 277.3)
XYZxyz(4.9191, 2.5784, 20.3130)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25187F #727F18
analogous
#183E7F #25187F #59187F
triadic
#25187F #7F2518 #187F25
tetradic
#25187F #7F183E #727F18 #187F59
square
#25187F #7F183E #727F18 #187F59
split-complementary
#25187F #7F5918 #3E7F18
monochromatic
#07051A #160E4C #25187F #3422B2 #4C38D9

Accessibility & contrast

On white

13.85
#25187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#25187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25187F
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25187F#FFFFFF#000000##FFFFFF
##25187F1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #25187f;
/* rgb */ color: rgb(37, 24, 127);
/* oklch */ color: oklch(31.3% 0.161 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e58a5',
    500: '#25187f',
    950: '#000000',
  },
}
SCSS
$custom: #25187f;
$custom-light: #6e58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25187f",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 247.573,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31251,
    "c": 0.1608,
    "h": 277.3
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#25187F
secondary
#A5B33F
accent
#EB3DD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25187F

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

Preview Lab → · Contrast checker → · Palette generator →

#25187F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva