#25318D#25318D

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

Color values

HEX#25318D
RGBrgb(37, 49, 141)
HSLhsl(233, 58%, 35%)
HSVhsv(233, 74%, 55%)
CMYKcmyk(73.8%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.30, 28.20, -52.42)
CIE-LCHlch(25.30, 59.52, 298.28°)
OKLaboklab(36.73% 0.0026 -0.1514)
OKLCHoklch(36.73% 0.151 271)
XYZxyz(6.6673, 4.5123, 25.7137)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25318D #8D8125
analogous
#25658D #25318D #4D258D
triadic
#25318D #8D2531 #318D25
tetradic
#25318D #8D2565 #8D8125 #258D4D
square
#25318D #8D2565 #8D8125 #258D4D
split-complementary
#25318D #8D4D25 #658D25
monochromatic
#0C0F2C #18205D #25318D #3242BD #5967D3

Accessibility & contrast

On white

11.04
#25318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#25318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25318D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25318D#FFFFFF#000000##FFFFFF
##25318D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #25318d;
/* rgb */ color: rgb(37, 49, 141);
/* oklch */ color: oklch(36.7% 0.151 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f69af',
    500: '#25318d',
    950: '#000000',
  },
}
SCSS
$custom: #25318d;
$custom-light: #6f69af;
$custom-dark: #000000;
JSON
{
  "hex": "#25318d",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 233.077,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36725,
    "c": 0.15147,
    "h": 271
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#25318D
secondary
#B8AD56
accent
#D046E2
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #25318D

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

Preview Lab → · Contrast checker → · Palette generator →

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