#25397F#25397F

#25397F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.1% C 0.121 H 268.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#25397F
RGBrgb(37, 57, 127)
HSLhsl(227, 55%, 32%)
HSVhsv(227, 71%, 50%)
CMYKcmyk(70.9%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.31, 17.34, -42.04)
CIE-LCHlch(26.31, 45.48, 292.41°)
OKLaboklab(37.11% -0.0042 -0.1209)
OKLCHoklch(37.11% 0.121 268)
XYZxyz(6.0555, 4.8513, 20.6918)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25397F #7F6B25
analogous
#25667F #25397F #3E257F
triadic
#25397F #7F2539 #397F25
tetradic
#25397F #7F2566 #7F6B25 #257F3E
square
#25397F #7F2566 #7F6B25 #257F3E
split-complementary
#25397F #7F3E25 #667F25
monochromatic
#090E20 #172450 #25397F #334EAE #526DCD

Accessibility & contrast

On white

10.66
#25397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#25397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25397F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25397F#FFFFFF#000000##FFFFFF
##25397F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084381
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #25397f;
/* rgb */ color: rgb(37, 57, 127);
/* oklch */ color: oklch(37.1% 0.121 268.0);
Tailwind
colors: {
  custom: {
    50: '#6b6fa5',
    500: '#25397f',
    950: '#000000',
  },
}
SCSS
$custom: #25397f;
$custom-light: #6b6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#25397f",
  "rgb": {
    "r": 37,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 226.667,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37113,
    "c": 0.12093,
    "h": 268
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#25397F
secondary
#B19B4F
accent
#BD4ADE
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #25397F

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

Preview Lab → · Contrast checker → · Palette generator →

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