#25318F#25318F

#25318F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.154 H 270.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#25318F
RGBrgb(37, 49, 143)
HSLhsl(233, 59%, 35%)
HSVhsv(233, 74%, 56%)
CMYKcmyk(74.1%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.48, 28.95, -53.36)
CIE-LCHlch(25.48, 60.71, 298.48°)
OKLaboklab(36.92% 0.0025 -0.1542)
OKLCHoklch(36.92% 0.154 270.9)
XYZxyz(6.8175, 4.5724, 26.5045)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25318F #8F8325
analogous
#25668F #25318F #4E258F
triadic
#25318F #8F2531 #318F25
tetradic
#25318F #8F2566 #8F8325 #258F4E
square
#25318F #8F2566 #8F8325 #258F4E
split-complementary
#25318F #8F4E25 #668F25
monochromatic
#0C102E #18205E #25318F #3242C0 #5A68D4

Accessibility & contrast

On white

10.97
#25318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#25318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25318F
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25318F#FFFFFF#000000##FFFFFF
##25318F1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #25318f;
/* rgb */ color: rgb(37, 49, 143);
/* oklch */ color: oklch(36.9% 0.154 270.9);
Tailwind
colors: {
  custom: {
    50: '#7069b1',
    500: '#25318f',
    950: '#000000',
  },
}
SCSS
$custom: #25318f;
$custom-light: #7069b1;
$custom-dark: #000000;
JSON
{
  "hex": "#25318f",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 233.208,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36916,
    "c": 0.15422,
    "h": 270.9
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#25318F
secondary
#B9AE57
accent
#D046E2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #25318F

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

Preview Lab → · Contrast checker → · Palette generator →

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