#25288F#25288F

#25288F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.165 H 272.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#25288F
RGBrgb(37, 40, 143)
HSLhsl(238, 59%, 35%)
HSVhsv(238, 74%, 56%)
CMYKcmyk(74.1%, 72%, 0%, 43.9%)
CIE-LABlab(23.32, 34.77, -56.91)
CIE-LCHlch(23.32, 66.70, 301.42°)
OKLaboklab(35.34% 0.0083 -0.1646)
OKLCHoklch(35.34% 0.165 272.9)
XYZxyz(6.4780, 3.8934, 26.3914)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25288F #8F8C25
analogous
#255D8F #25288F #57258F
triadic
#25288F #8F2528 #288F25
tetradic
#25288F #8F255D #8F8C25 #258F57
square
#25288F #8F255D #8F8C25 #258F57
split-complementary
#25288F #8F5725 #5D8F25
monochromatic
#0C0D2E #181A5E #25288F #3236C0 #5A5ED4

Accessibility & contrast

On white

11.81
#25288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#25288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25288F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25288F#FFFFFF#000000##FFFFFF
##25288F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #25288f;
/* rgb */ color: rgb(37, 40, 143);
/* oklch */ color: oklch(35.3% 0.165 272.9);
Tailwind
colors: {
  custom: {
    50: '#7163b1',
    500: '#25288f',
    950: '#000000',
  },
}
SCSS
$custom: #25288f;
$custom-light: #7163b1;
$custom-dark: #000000;
JSON
{
  "hex": "#25288f",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 238.302,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35344,
    "c": 0.16483,
    "h": 272.9
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#25288F
secondary
#B9B657
accent
#DE46E2
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #25288F

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

Preview Lab → · Contrast checker → · Palette generator →

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