#25398C#25398C

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

Color values

HEX#25398C
RGBrgb(37, 57, 140)
HSLhsl(228, 58%, 35%)
HSVhsv(228, 74%, 55%)
CMYKcmyk(73.6%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.33, 22.39, -48.48)
CIE-LCHlch(27.33, 53.40, 294.79°)
OKLaboklab(38.21% -0.0035 -0.1398)
OKLCHoklch(38.21% 0.14 268.6)
XYZxyz(6.9581, 5.2123, 25.4452)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25398C #8C7825
analogous
#256C8C #25398C #45258C
triadic
#25398C #8C2539 #398C25
tetradic
#25398C #8C256C #8C7825 #258C45
square
#25398C #8C256C #8C7825 #258C45
split-complementary
#25398C #8C4525 #6C8C25
monochromatic
#0B122B #18255C #25398C #324DBC #5870D3

Accessibility & contrast

On white

10.28
#25398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25398C
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25398C#FFFFFF#000000##FFFFFF
##25398C1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #25398c;
/* rgb */ color: rgb(37, 57, 140);
/* oklch */ color: oklch(38.2% 0.140 268.6);
Tailwind
colors: {
  custom: {
    50: '#6e6fae',
    500: '#25398c',
    950: '#000000',
  },
}
SCSS
$custom: #25398c;
$custom-light: #6e6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#25398c",
  "rgb": {
    "r": 37,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 228.35,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38205,
    "c": 0.13984,
    "h": 268.6
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#25398C
secondary
#B8A455
accent
#C346E1
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #25398C

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

Preview Lab → · Contrast checker → · Palette generator →

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