#252797#252797

#252797 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.176 H 272.5°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#252797
RGBrgb(37, 39, 151)
HSLhsl(239, 61%, 37%)
HSVhsv(239, 75%, 59%)
CMYKcmyk(75.5%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.93, 38.20, -60.85)
CIE-LCHlch(23.93, 71.84, 302.12°)
OKLaboklab(36.03% 0.0076 -0.1761)
OKLCHoklch(36.03% 0.176 272.5)
XYZxyz(7.0725, 4.0780, 29.6866)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252797 #979525
analogous
#256097 #252797 #5C2597
triadic
#252797 #972527 #279725
tetradic
#252797 #972560 #979525 #25975C
square
#252797 #972560 #979525 #25975C
split-complementary
#252797 #975C25 #609725
monochromatic
#0D0E35 #191A66 #252797 #3134C8 #5F61D8

Accessibility & contrast

On white

11.57
#252797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#252797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252797
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252797#FFFFFF#000000##FFFFFF
##2527971.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252797;
/* rgb */ color: rgb(37, 39, 151);
/* oklch */ color: oklch(36.0% 0.176 272.5);
Tailwind
colors: {
  custom: {
    50: '#7362b7',
    500: '#252797',
    950: '#000000',
  },
}
SCSS
$custom: #252797;
$custom-light: #7362b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252797",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 238.947,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36032,
    "c": 0.17624,
    "h": 272.5
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#252797
secondary
#BDBB5B
accent
#E144E4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252797

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

Preview Lab → · Contrast checker → · Palette generator →

#252797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva