#25398B#25398B

#25398B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.138 H 268.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#25398B
RGBrgb(37, 57, 139)
HSLhsl(228, 58%, 35%)
HSVhsv(228, 73%, 55%)
CMYKcmyk(73.4%, 59%, 0%, 45.5%)
CIE-LABlab(27.25, 22.01, -48.00)
CIE-LCHlch(27.25, 52.80, 294.63°)
OKLaboklab(38.12% -0.0035 -0.1384)
OKLCHoklch(38.12% 0.138 268.6)
XYZxyz(6.8847, 5.1829, 25.0587)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25398B #8B7725
analogous
#256C8B #25398B #44258B
triadic
#25398B #8B2539 #398B25
tetradic
#25398B #8B256C #8B7725 #258B44
square
#25398B #8B256C #8B7725 #258B44
split-complementary
#25398B #8B4425 #6C8B25
monochromatic
#0B112A #18255B #25398B #324DBB #5870D3

Accessibility & contrast

On white

10.31
#25398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#25398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25398B
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25398B#FFFFFF#000000##FFFFFF
##25398B1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #25398b;
/* rgb */ color: rgb(37, 57, 139);
/* oklch */ color: oklch(38.1% 0.138 268.6);
Tailwind
colors: {
  custom: {
    50: '#6e6fae',
    500: '#25398b',
    950: '#000000',
  },
}
SCSS
$custom: #25398b;
$custom-light: #6e6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#25398b",
  "rgb": {
    "r": 37,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 228.235,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38119,
    "c": 0.13841,
    "h": 268.6
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#25398B
secondary
#B7A455
accent
#C347E1
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #25398B

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

Preview Lab → · Contrast checker → · Palette generator →

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