#252897#252897

#252897 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.175 H 272.3°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#252897
RGBrgb(37, 40, 151)
HSLhsl(238, 61%, 37%)
HSVhsv(238, 75%, 59%)
CMYKcmyk(75.5%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.14, 37.60, -60.49)
CIE-LCHlch(24.14, 71.22, 301.87°)
OKLaboklab(36.19% 0.0071 -0.175)
OKLCHoklch(36.19% 0.175 272.3)
XYZxyz(7.1058, 4.1445, 29.6976)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252897 #979425
analogous
#256197 #252897 #5B2597
triadic
#252897 #972528 #289725
tetradic
#252897 #972561 #979425 #25975B
square
#252897 #972561 #979425 #25975B
split-complementary
#252897 #975B25 #619725
monochromatic
#0D0E35 #191B66 #252897 #3135C8 #5F62D8

Accessibility & contrast

On white

11.48
#252897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#252897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252897
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252897#FFFFFF#000000##FFFFFF
##2528971.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252897;
/* rgb */ color: rgb(37, 40, 151);
/* oklch */ color: oklch(36.2% 0.175 272.3);
Tailwind
colors: {
  custom: {
    50: '#7363b7',
    500: '#252897',
    950: '#000000',
  },
}
SCSS
$custom: #252897;
$custom-light: #7363b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252897",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 238.421,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36186,
    "c": 0.17519,
    "h": 272.3
  },
  "luminance": 0.04145
}

Semantic roles & 50–950 ramp

primary
#252897
secondary
#BDBA5B
accent
#E044E4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252897

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

Preview Lab → · Contrast checker → · Palette generator →

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