#25317D#25317D

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

Color values

HEX#25317D
RGBrgb(37, 49, 125)
HSLhsl(232, 54%, 32%)
HSVhsv(232, 70%, 49%)
CMYKcmyk(70.4%, 60.8%, 0%, 51%)
CIE-LABlab(23.90, 22.12, -44.69)
CIE-LCHlch(23.90, 49.86, 296.34°)
OKLaboklab(35.26% 0.003 -0.1287)
OKLCHoklch(35.26% 0.129 271.3)
XYZxyz(5.5617, 4.0701, 19.8906)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25317D #7D7125
analogous
#255D7D #25317D #45257D
triadic
#25317D #7D2531 #317D25
tetradic
#25317D #7D255D #7D7125 #257D45
square
#25317D #7D255D #7D7125 #257D45
split-complementary
#25317D #7D4525 #5D7D25
monochromatic
#090C1F #171E4E #25317D #3344AC #5162CB

Accessibility & contrast

On white

11.58
#25317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#25317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25317D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25317D#FFFFFF#000000##FFFFFF
##25317D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #25317d;
/* rgb */ color: rgb(37, 49, 125);
/* oklch */ color: oklch(35.3% 0.129 271.3);
Tailwind
colors: {
  custom: {
    50: '#6c68a3',
    500: '#25317d',
    950: '#000000',
  },
}
SCSS
$custom: #25317d;
$custom-light: #6c68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#25317d",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 231.818,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3526,
    "c": 0.12879,
    "h": 271.3
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

primary
#25317D
secondary
#AFA24F
accent
#CA4ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #25317D

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

Preview Lab → · Contrast checker → · Palette generator →

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