#25187E#25187E

#25187E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.160 H 277.5°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#25187E
RGBrgb(37, 24, 126)
HSLhsl(248, 68%, 29%)
HSVhsv(248, 81%, 49%)
CMYKcmyk(70.6%, 81%, 0%, 50.6%)
CIE-LABlab(18.15, 38.29, -54.75)
CIE-LCHlch(18.15, 66.81, 304.97°)
OKLaboklab(31.14% 0.0208 -0.1582)
OKLCHoklch(31.14% 0.16 277.5)
XYZxyz(4.8543, 2.5525, 19.9715)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25187E #717E18
analogous
#183E7E #25187E #58187E
triadic
#25187E #7E2518 #187E25
tetradic
#25187E #7E183E #717E18 #187E58
square
#25187E #7E183E #717E18 #187E58
split-complementary
#25187E #7E5818 #3E7E18
monochromatic
#08051A #160E4B #25187E #3422B1 #4C37D9

Accessibility & contrast

On white

13.90
#25187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#25187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25187E
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25187E#FFFFFF#000000##FFFFFF
##25187E1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #25187e;
/* rgb */ color: rgb(37, 24, 126);
/* oklch */ color: oklch(31.1% 0.160 277.5);
Tailwind
colors: {
  custom: {
    50: '#6e58a5',
    500: '#25187e',
    950: '#000000',
  },
}
SCSS
$custom: #25187e;
$custom-light: #6e58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25187e",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 247.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31136,
    "c": 0.15955,
    "h": 277.5
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#25187E
secondary
#A4B23F
accent
#EB3DD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25187E

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

Preview Lab → · Contrast checker → · Palette generator →

#25187E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva