#25318B#25318B

#25318B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.149 H 271.0°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#25318B
RGBrgb(37, 49, 139)
HSLhsl(233, 58%, 35%)
HSVhsv(233, 73%, 55%)
CMYKcmyk(73.4%, 64.7%, 0%, 45.5%)
CIE-LABlab(25.12, 27.45, -51.47)
CIE-LCHlch(25.12, 58.34, 298.07°)
OKLaboklab(36.54% 0.0027 -0.1487)
OKLCHoklch(36.54% 0.149 271)
XYZxyz(6.5199, 4.4534, 24.9371)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25318B #8B7F25
analogous
#25648B #25318B #4C258B
triadic
#25318B #8B2531 #318B25
tetradic
#25318B #8B2564 #8B7F25 #258B4C
square
#25318B #8B2564 #8B7F25 #258B4C
split-complementary
#25318B #8B4C25 #648B25
monochromatic
#0B0F2A #18205B #25318B #3242BB #5866D3

Accessibility & contrast

On white

11.11
#25318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#25318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25318B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25318B#FFFFFF#000000##FFFFFF
##25318B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #25318b;
/* rgb */ color: rgb(37, 49, 139);
/* oklch */ color: oklch(36.5% 0.149 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f69ae',
    500: '#25318b',
    950: '#000000',
  },
}
SCSS
$custom: #25318b;
$custom-light: #6f69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#25318b",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 232.941,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36537,
    "c": 0.1487,
    "h": 271
  },
  "luminance": 0.04454
}

Semantic roles & 50–950 ramp

primary
#25318B
secondary
#B7AB55
accent
#CF47E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #25318B

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

Preview Lab → · Contrast checker → · Palette generator →

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