#25287E#25287E

#25287E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.142 H 274.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#25287E
RGBrgb(37, 40, 126)
HSLhsl(238, 55%, 32%)
HSVhsv(238, 71%, 49%)
CMYKcmyk(70.6%, 68.3%, 0%, 50.6%)
CIE-LABlab(21.64, 28.61, -49.01)
CIE-LCHlch(21.64, 56.75, 300.28°)
OKLaboklab(33.62% 0.0104 -0.1415)
OKLCHoklch(33.62% 0.142 274.2)
XYZxyz(5.2864, 3.4168, 20.1155)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25287E #7E7B25
analogous
#25547E #25287E #4F257E
triadic
#25287E #7E2528 #287E25
tetradic
#25287E #7E2554 #7E7B25 #257E4F
square
#25287E #7E2554 #7E7B25 #257E4F
split-complementary
#25287E #7E4F25 #547E25
monochromatic
#090A1F #17194F #25287E #3337AD #5156CC

Accessibility & contrast

On white

12.47
#25287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#25287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25287E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25287E#FFFFFF#000000##FFFFFF
##25287E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #25287e;
/* rgb */ color: rgb(37, 40, 126);
/* oklch */ color: oklch(33.6% 0.142 274.2);
Tailwind
colors: {
  custom: {
    50: '#6d62a4',
    500: '#25287e',
    950: '#000000',
  },
}
SCSS
$custom: #25287e;
$custom-light: #6d62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#25287e",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 237.978,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33624,
    "c": 0.14189,
    "h": 274.2
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#25287E
secondary
#B0AD4F
accent
#D94ADE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #25287E

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

Preview Lab → · Contrast checker → · Palette generator →

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