#25157F#25157F

#25157F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.163 H 277.7°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#25157F
RGBrgb(37, 21, 127)
HSLhsl(249, 72%, 29%)
HSVhsv(249, 83%, 50%)
CMYKcmyk(70.9%, 83.5%, 0%, 50.2%)
CIE-LABlab(17.74, 40.14, -56.06)
CIE-LCHlch(17.74, 68.95, 305.60°)
OKLaboklab(30.89% 0.0219 -0.162)
OKLCHoklch(30.89% 0.163 277.7)
XYZxyz(4.8606, 2.4615, 20.2935)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25157F #6F7F15
analogous
#153A7F #25157F #5A157F
triadic
#25157F #7F2515 #157F25
tetradic
#25157F #7F153A #6F7F15 #157F5A
square
#25157F #7F153A #6F7F15 #157F5A
split-complementary
#25157F #7F5A15 #3A7F15
monochromatic
#08041A #160C4A #25157F #341EB4 #4B31DD

Accessibility & contrast

On white

14.07
#25157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#25157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25157F
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25157F#FFFFFF#000000##FFFFFF
##25157F1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #25157f;
/* rgb */ color: rgb(37, 21, 127);
/* oklch */ color: oklch(30.9% 0.163 277.7);
Tailwind
colors: {
  custom: {
    50: '#6f56a5',
    500: '#25157f',
    950: '#000000',
  },
}
SCSS
$custom: #25157f;
$custom-light: #6f56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25157f",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 249.057,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30885,
    "c": 0.16345,
    "h": 277.7
  },
  "luminance": 0.02462
}

Semantic roles & 50–950 ramp

primary
#25157F
secondary
#A2B43C
accent
#EE39D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25157F

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

Preview Lab → · Contrast checker → · Palette generator →

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