#25187D#25187D

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

Color values

HEX#25187D
RGBrgb(37, 24, 125)
HSLhsl(248, 68%, 29%)
HSVhsv(248, 81%, 49%)
CMYKcmyk(70.4%, 80.8%, 0%, 51%)
CIE-LABlab(18.04, 37.97, -54.30)
CIE-LCHlch(18.04, 66.26, 304.96°)
OKLaboklab(31.02% 0.021 -0.1569)
OKLCHoklch(31.02% 0.158 277.6)
XYZxyz(4.7901, 2.5268, 19.6334)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25187D #707D18
analogous
#183E7D #25187D #58187D
triadic
#25187D #7D2518 #187D25
tetradic
#25187D #7D183E #707D18 #187D58
square
#25187D #7D183E #707D18 #187D58
split-complementary
#25187D #7D5818 #3E7D18
monochromatic
#08051A #160E4A #25187D #3422B0 #4C37D9

Accessibility & contrast

On white

13.95
#25187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#25187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25187D
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25187D#FFFFFF#000000##FFFFFF
##25187D1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25187d;
/* rgb */ color: rgb(37, 24, 125);
/* oklch */ color: oklch(31.0% 0.158 277.6);
Tailwind
colors: {
  custom: {
    50: '#6e58a4',
    500: '#25187d',
    950: '#000000',
  },
}
SCSS
$custom: #25187d;
$custom-light: #6e58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#25187d",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 247.723,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31022,
    "c": 0.15829,
    "h": 277.6
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#25187D
secondary
#A3B23F
accent
#EB3DD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25187D

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

Preview Lab → · Contrast checker → · Palette generator →

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