#25278B#25278B

#25278B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.161 H 273.4°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#25278B
RGBrgb(37, 39, 139)
HSLhsl(239, 58%, 35%)
HSVhsv(239, 73%, 55%)
CMYKcmyk(73.4%, 71.9%, 0%, 45.5%)
CIE-LABlab(22.68, 33.97, -55.47)
CIE-LCHlch(22.68, 65.05, 301.48°)
OKLaboklab(34.77% 0.0095 -0.1604)
OKLCHoklch(34.77% 0.161 273.4)
XYZxyz(6.1471, 3.7078, 24.8128)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25278B #8B8925
analogous
#255A8B #25278B #56258B
triadic
#25278B #8B2527 #278B25
tetradic
#25278B #8B255A #8B8925 #258B56
square
#25278B #8B255A #8B8925 #258B56
split-complementary
#25278B #8B5625 #5A8B25
monochromatic
#0B0C2A #18195B #25278B #3235BB #585AD3

Accessibility & contrast

On white

12.06
#25278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#25278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25278B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25278B#FFFFFF#000000##FFFFFF
##25278B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #25278b;
/* rgb */ color: rgb(37, 39, 139);
/* oklch */ color: oklch(34.8% 0.161 273.4);
Tailwind
colors: {
  custom: {
    50: '#7062ae',
    500: '#25278b',
    950: '#000000',
  },
}
SCSS
$custom: #25278b;
$custom-light: #7062ae;
$custom-dark: #000000;
JSON
{
  "hex": "#25278b",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 238.824,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34765,
    "c": 0.16069,
    "h": 273.4
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#25278B
secondary
#B7B555
accent
#DE47E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #25278B

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

Preview Lab → · Contrast checker → · Palette generator →

#25278B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva