#25317B#25317B

#25317B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.126 H 271.4°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#25317B
RGBrgb(37, 49, 123)
HSLhsl(232, 54%, 31%)
HSVhsv(232, 70%, 48%)
CMYKcmyk(69.9%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.74, 21.36, -43.69)
CIE-LCHlch(23.74, 48.63, 296.05°)
OKLaboklab(35.08% 0.003 -0.1258)
OKLCHoklch(35.08% 0.126 271.4)
XYZxyz(5.4352, 4.0195, 19.2245)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25317B #7B6F25
analogous
#255C7B #25317B #44257B
triadic
#25317B #7B2531 #317B25
tetradic
#25317B #7B255C #7B6F25 #257B44
square
#25317B #7B255C #7B6F25 #257B44
split-complementary
#25317B #7B4425 #5C7B25
monochromatic
#090C1D #171E4C #25317B #3344AA #5061CA

Accessibility & contrast

On white

11.64
#25317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#25317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25317B
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25317B#FFFFFF#000000##FFFFFF
##25317B1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #25317b;
/* rgb */ color: rgb(37, 49, 123);
/* oklch */ color: oklch(35.1% 0.126 271.4);
Tailwind
colors: {
  custom: {
    50: '#6b68a2',
    500: '#25317b',
    950: '#000000',
  },
}
SCSS
$custom: #25317b;
$custom-light: #6b68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#25317b",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 231.628,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35084,
    "c": 0.12586,
    "h": 271.4
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#25317B
secondary
#ADA04F
accent
#C94BDD
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #25317B

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

Preview Lab → · Contrast checker → · Palette generator →

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