#25128F#25128F

#25128F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.185 H 275.6°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#25128F
RGBrgb(37, 18, 143)
HSLhsl(249, 78%, 32%)
HSVhsv(249, 87%, 56%)
CMYKcmyk(74.1%, 87.4%, 0%, 43.9%)
CIE-LABlab(19.26, 46.39, -63.62)
CIE-LCHlch(19.26, 78.74, 306.10°)
OKLaboklab(32.5% 0.0179 -0.1839)
OKLCHoklch(32.5% 0.185 275.6)
XYZxyz(5.9356, 2.8085, 26.2106)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25128F #7C8F12
analogous
#123E8F #25128F #64128F
triadic
#25128F #8F2512 #128F25
tetradic
#25128F #8F123E #7C8F12 #128F64
square
#25128F #8F123E #7C8F12 #128F64
split-complementary
#25128F #8F6412 #3E8F12
monochromatic
#090422 #170B59 #25128F #3319C5 #5036E6

Accessibility & contrast

On white

13.45
#25128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#25128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25128F
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25128F#FFFFFF#000000##FFFFFF
##25128F1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #25128f;
/* rgb */ color: rgb(37, 18, 143);
/* oklch */ color: oklch(32.5% 0.185 275.6);
Tailwind
colors: {
  custom: {
    50: '#7356b1',
    500: '#25128f',
    950: '#000000',
  },
}
SCSS
$custom: #25128f;
$custom-light: #7356b1;
$custom-dark: #000000;
JSON
{
  "hex": "#25128f",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 249.12,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32498,
    "c": 0.18472,
    "h": 275.6
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#25128F
secondary
#AEC33A
accent
#F434D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #25128F

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

Preview Lab → · Contrast checker → · Palette generator →

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