#25317F#25317F

#25317F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.132 H 271.3°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#25317F
RGBrgb(37, 49, 127)
HSLhsl(232, 55%, 32%)
HSVhsv(232, 71%, 50%)
CMYKcmyk(70.9%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.07, 22.89, -45.67)
CIE-LCHlch(24.07, 51.09, 296.62°)
OKLaboklab(35.44% 0.003 -0.1316)
OKLCHoklch(35.44% 0.132 271.3)
XYZxyz(5.6907, 4.1217, 20.5702)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25317F #7F7325
analogous
#255E7F #25317F #46257F
triadic
#25317F #7F2531 #317F25
tetradic
#25317F #7F255E #7F7325 #257F46
square
#25317F #7F255E #7F7325 #257F46
split-complementary
#25317F #7F4625 #5E7F25
monochromatic
#090C20 #171F50 #25317F #3343AE #5262CD

Accessibility & contrast

On white

11.51
#25317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#25317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25317F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25317F#FFFFFF#000000##FFFFFF
##25317F1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #25317f;
/* rgb */ color: rgb(37, 49, 127);
/* oklch */ color: oklch(35.4% 0.132 271.3);
Tailwind
colors: {
  custom: {
    50: '#6c69a5',
    500: '#25317f',
    950: '#000000',
  },
}
SCSS
$custom: #25317f;
$custom-light: #6c69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25317f",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 232,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35437,
    "c": 0.13168,
    "h": 271.3
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#25317F
secondary
#B1A44F
accent
#CA4ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #25317F

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

Preview Lab → · Contrast checker → · Palette generator →

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